pub struct TextSpan { /* private fields */ }Expand description
$literal
Implementations§
Source§impl TextSpan
impl TextSpan
Sourcepub fn class_names(self, class_names: &[&TextStyleRef]) -> Self
pub fn class_names(self, class_names: &[&TextStyleRef]) -> Self
A text:class-names attribute specifies a white space separated list of text style names.
Sourcepub fn style_name(self, name: &TextStyleRef) -> Self
pub fn style_name(self, name: &TextStyleRef) -> Self
The text:style-name attribute specifies style for span which shall be a style with family of text. If both text:style-name and text:class-names are present, the style referenced by the text:style-name attribute is treated as the first style in the list in text:class-names. Consumers should support the text:class-names attribute and also should preserve it while editing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextSpan
impl RefUnwindSafe for TextSpan
impl Send for TextSpan
impl Sync for TextSpan
impl Unpin for TextSpan
impl UnwindSafe for TextSpan
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