Struct cosmic_text::Attrs
source · [−]pub struct Attrs<'a> {
pub family: Family<'a>,
pub monospaced: bool,
pub stretch: Stretch,
pub style: Style,
pub weight: Weight,
}Fields
family: Family<'a>monospaced: boolstretch: Stretchstyle: Styleweight: WeightImplementations
sourceimpl<'a> Attrs<'a>
impl<'a> Attrs<'a>
pub fn new() -> Self
pub fn family(self, family: Family<'a>) -> Self
pub fn monospaced(self, monospaced: bool) -> Self
pub fn stretch(self, stretch: Stretch) -> Self
pub fn style(self, style: Style) -> Self
pub fn weight(self, weight: Weight) -> Self
pub fn matches(&self, face: &FaceInfo) -> bool
Trait Implementations
impl<'a> Eq for Attrs<'a>
impl<'a> StructuralEq for Attrs<'a>
impl<'a> StructuralPartialEq for Attrs<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Attrs<'a>
impl<'a> Send for Attrs<'a>
impl<'a> Sync for Attrs<'a>
impl<'a> Unpin for Attrs<'a>
impl<'a> UnwindSafe for Attrs<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more