SymbolNodeBuilder

Struct SymbolNodeBuilder 

Source
pub struct SymbolNodeBuilder<'f1, S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<'f1, S: State> SymbolNodeBuilder<'f1, S>

Source

pub fn build(self) -> SymbolNode
where S: IsComplete,

Finishes building and performs the requested action.

Source

pub fn text(self, value: &'f1 str) -> SymbolNodeBuilder<'f1, SetText<S>>
where S::Text: IsUnset,

Required.

Symbol text for the node

Source

pub fn height(self, value: f64) -> SymbolNodeBuilder<'f1, SetHeight<S>>
where S::Height: IsUnset,

Optional (Some / Option setters).

Height of the symbol

Source

pub fn maybe_height( self, value: Option<f64>, ) -> SymbolNodeBuilder<'f1, SetHeight<S>>
where S::Height: IsUnset,

Optional (Some / Option setters).

Height of the symbol

Source

pub fn depth(self, value: f64) -> SymbolNodeBuilder<'f1, SetDepth<S>>
where S::Depth: IsUnset,

Optional (Some / Option setters).

Depth of the symbol

Source

pub fn maybe_depth( self, value: Option<f64>, ) -> SymbolNodeBuilder<'f1, SetDepth<S>>
where S::Depth: IsUnset,

Optional (Some / Option setters).

Depth of the symbol

Source

pub fn italic(self, value: f64) -> SymbolNodeBuilder<'f1, SetItalic<S>>
where S::Italic: IsUnset,

Optional (Some / Option setters).

Italic correction value

Source

pub fn maybe_italic( self, value: Option<f64>, ) -> SymbolNodeBuilder<'f1, SetItalic<S>>
where S::Italic: IsUnset,

Optional (Some / Option setters).

Italic correction value

Source

pub fn skew(self, value: f64) -> SymbolNodeBuilder<'f1, SetSkew<S>>
where S::Skew: IsUnset,

Optional (Some / Option setters).

Skew correction value

Source

pub fn maybe_skew( self, value: Option<f64>, ) -> SymbolNodeBuilder<'f1, SetSkew<S>>
where S::Skew: IsUnset,

Optional (Some / Option setters).

Skew correction value

Source

pub fn width(self, value: f64) -> SymbolNodeBuilder<'f1, SetWidth<S>>
where S::Width: IsUnset,

Optional (Some / Option setters).

Width of the symbol

Source

pub fn maybe_width( self, value: Option<f64>, ) -> SymbolNodeBuilder<'f1, SetWidth<S>>
where S::Width: IsUnset,

Optional (Some / Option setters).

Width of the symbol

Source

pub fn max_font_size( self, value: f64, ) -> SymbolNodeBuilder<'f1, SetMaxFontSize<S>>
where S::MaxFontSize: IsUnset,

Optional (Some / Option setters).

Maximum font size used in this symbol

Source

pub fn maybe_max_font_size( self, value: Option<f64>, ) -> SymbolNodeBuilder<'f1, SetMaxFontSize<S>>
where S::MaxFontSize: IsUnset,

Optional (Some / Option setters).

Maximum font size used in this symbol

Source

pub fn classes(self, value: ClassList) -> SymbolNodeBuilder<'f1, SetClasses<S>>
where S::Classes: IsUnset,

Optional (Some / Option setters).

Classes applied to this symbol

Source

pub fn maybe_classes( self, value: Option<ClassList>, ) -> SymbolNodeBuilder<'f1, SetClasses<S>>
where S::Classes: IsUnset,

Optional (Some / Option setters).

Classes applied to this symbol

Source

pub fn style(self, value: CssStyle) -> SymbolNodeBuilder<'f1, SetStyle<S>>
where S::Style: IsUnset,

Optional (Some / Option setters).

Inline CSS style object

Source

pub fn maybe_style( self, value: Option<CssStyle>, ) -> SymbolNodeBuilder<'f1, SetStyle<S>>
where S::Style: IsUnset,

Optional (Some / Option setters).

Inline CSS style object

Auto Trait Implementations§

§

impl<'f1, S> Freeze for SymbolNodeBuilder<'f1, S>

§

impl<'f1, S> RefUnwindSafe for SymbolNodeBuilder<'f1, S>

§

impl<'f1, S> Send for SymbolNodeBuilder<'f1, S>

§

impl<'f1, S> Sync for SymbolNodeBuilder<'f1, S>

§

impl<'f1, S> Unpin for SymbolNodeBuilder<'f1, S>

§

impl<'f1, S> UnwindSafe for SymbolNodeBuilder<'f1, S>

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.