pub struct TextBlock {
pub text: Rendered,
pub line: bool,
pub common: Common,
pub text_align: TextAlign,
pub style: Style,
pub size: Option<i64>,
pub font: Vec<NamedFont>,
pub line_height: Option<i64>,
pub line_clamp: Option<i64>,
pub text_indent: Option<Length>,
}
Fields
text: Rendered
line: bool
common: Common
text_align: TextAlign
style: Style
size: Option<i64>
font: Vec<NamedFont>
line_height: Option<i64>
line_clamp: Option<i64>
text_indent: Option<Length>
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for TextBlock
impl<'de> Deserialize<'de> for TextBlock
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<TextBlock> for TextBlock
impl PartialEq<TextBlock> for TextBlock
impl StructuralPartialEq for TextBlock
Auto Trait Implementations
impl RefUnwindSafe for TextBlock
impl Send for TextBlock
impl Sync for TextBlock
impl Unpin for TextBlock
impl UnwindSafe for TextBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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