pub struct Attribute(/* private fields */);
Implementations§
Source§impl Attribute
impl Attribute
pub fn new_background_alpha(alpha: u16) -> Option<Attribute>
pub fn new_background(red: u16, green: u16, blue: u16) -> Option<Attribute>
pub fn new_fallback(enable_fallback: bool) -> Option<Attribute>
pub fn new_family(family: &str) -> Option<Attribute>
pub fn new_foreground_alpha(alpha: u16) -> Option<Attribute>
pub fn new_foreground(red: u16, green: u16, blue: u16) -> Option<Attribute>
pub fn new_gravity_hint(hint: GravityHint) -> Option<Attribute>
pub fn new_gravity(gravity: Gravity) -> Option<Attribute>
pub fn new_letter_spacing(letter_spacing: i32) -> Option<Attribute>
pub fn new_rise(rise: i32) -> Option<Attribute>
pub fn new_scale(scale_factor: f64) -> Option<Attribute>
pub fn new_stretch(stretch: Stretch) -> Option<Attribute>
pub fn new_strikethrough_color( red: u16, green: u16, blue: u16, ) -> Option<Attribute>
pub fn new_strikethrough(strikethrough: bool) -> Option<Attribute>
pub fn new_style(style: Style) -> Option<Attribute>
pub fn new_underline_color(red: u16, green: u16, blue: u16) -> Option<Attribute>
pub fn new_underline(underline: Underline) -> Option<Attribute>
pub fn new_variant(variant: Variant) -> Option<Attribute>
pub fn new_weight(weight: Weight) -> Option<Attribute>
pub fn get_attr_class(&self) -> AttrClass
pub fn get_start_index(&self) -> u32
pub fn get_end_index(&self) -> u32
pub fn set_start_index(&mut self, index: u32)
pub fn set_end_index(&mut self, index: u32)
Trait Implementations§
Source§impl Ord for Attribute
impl Ord for Attribute
Source§impl PartialOrd for Attribute
impl PartialOrd for Attribute
impl Eq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl !Send for Attribute
impl !Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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