Skip to main content

TextNodeArgs

Struct TextNodeArgs 

Source
pub struct TextNodeArgs<'a> {
Show 17 fields pub node_id: Option<WIPOffset<&'a str>>, pub content: Option<WIPOffset<&'a str>>, pub content_binding: Option<WIPOffset<DataBinding<'a>>>, pub localized_content: Option<WIPOffset<LocalizedString<'a>>>, pub font_family: Option<WIPOffset<&'a str>>, pub font_size: Option<WIPOffset<Length<'a>>>, pub font_weight: FontWeight, pub line_height: f32, pub letter_spacing: Option<WIPOffset<Length<'a>>>, pub text_align: TextAlign, pub text_overflow: TextOverflow, pub text_decoration: TextDecoration, pub max_lines: i32, pub color: Option<&'a Color>, pub opacity: f32, pub heading_level: i8, pub semantic_node_id: Option<WIPOffset<&'a str>>,
}

Fields§

§node_id: Option<WIPOffset<&'a str>>§content: Option<WIPOffset<&'a str>>§content_binding: Option<WIPOffset<DataBinding<'a>>>§localized_content: Option<WIPOffset<LocalizedString<'a>>>§font_family: Option<WIPOffset<&'a str>>§font_size: Option<WIPOffset<Length<'a>>>§font_weight: FontWeight§line_height: f32§letter_spacing: Option<WIPOffset<Length<'a>>>§text_align: TextAlign§text_overflow: TextOverflow§text_decoration: TextDecoration§max_lines: i32§color: Option<&'a Color>§opacity: f32§heading_level: i8§semantic_node_id: Option<WIPOffset<&'a str>>

Trait Implementations§

Source§

impl<'a> Default for TextNodeArgs<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for TextNodeArgs<'a>

§

impl<'a> RefUnwindSafe for TextNodeArgs<'a>

§

impl<'a> Send for TextNodeArgs<'a>

§

impl<'a> Sync for TextNodeArgs<'a>

§

impl<'a> Unpin for TextNodeArgs<'a>

§

impl<'a> UnsafeUnpin for TextNodeArgs<'a>

§

impl<'a> UnwindSafe for TextNodeArgs<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.