pub struct SimpleStyling { /* private fields */ }Implementations§
Source§impl SimpleStyling
impl SimpleStyling
pub fn builder() -> SimpleStylingBuilder
pub fn new() -> SimpleStyling
Source§impl SimpleStyling
impl SimpleStyling
pub fn increment_id(&mut self)
pub fn set_font_size(&mut self, font_size: usize)
pub fn set_line_height(&mut self, line_height: f32)
pub fn set_font_family(&mut self, font_family: Vec<FamilyOwned>)
pub fn set_weight(&mut self, weight: FontWeight)
pub fn set_italic_style(&mut self, italic_style: FontStyle)
pub fn set_stretch(&mut self, stretch: FontWidth)
pub fn set_tab_width(&mut self, tab_width: usize)
pub fn set_atomic_soft_tabs(&mut self, atomic_soft_tabs: bool)
Trait Implementations§
Source§impl Clone for SimpleStyling
impl Clone for SimpleStyling
Source§fn clone(&self) -> SimpleStyling
fn clone(&self) -> SimpleStyling
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimpleStyling
impl Debug for SimpleStyling
Source§impl Default for SimpleStyling
impl Default for SimpleStyling
Source§fn default() -> SimpleStyling
fn default() -> SimpleStyling
Returns the “default value” for a type. Read more
Source§impl Styling for SimpleStyling
impl Styling for SimpleStyling
fn font_size(&self, _edid: Id, _line: usize) -> usize
fn line_height(&self, _edid: Id, _line: usize) -> f32
fn font_family(&self, _edid: Id, _line: usize) -> Cow<'_, [FamilyOwned]>
fn weight(&self, _edid: Id, _line: usize) -> FontWeight
fn italic_style(&self, _edid: Id, _line: usize) -> FontStyle
fn font_width(&self, _edid: Id, _line: usize) -> FontWidth
fn tab_width(&self, _edid: Id, _line: usize) -> usize
Source§fn atomic_soft_tabs(&self, _edid: Id, _line: usize) -> bool
fn atomic_soft_tabs(&self, _edid: Id, _line: usize) -> bool
Whether the cursor should treat leading soft tabs as if they are hard tabs
Source§fn apply_attr_styles(
&self,
_edid: Id,
_style: &EditorStyle,
_line: usize,
_default: Attrs<'_>,
_attrs: &mut AttrsList,
)
fn apply_attr_styles( &self, _edid: Id, _style: &EditorStyle, _line: usize, _default: Attrs<'_>, _attrs: &mut AttrsList, )
Apply custom attribute styles to the line
fn apply_layout_styles( &self, _edid: Id, _style: &EditorStyle, _line: usize, _layout_line: &mut TextLayoutLine, )
Auto Trait Implementations§
impl Freeze for SimpleStyling
impl RefUnwindSafe for SimpleStyling
impl Send for SimpleStyling
impl Sync for SimpleStyling
impl Unpin for SimpleStyling
impl UnsafeUnpin for SimpleStyling
impl UnwindSafe for SimpleStyling
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().