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>
impl<'f1, S: State> SymbolNodeBuilder<'f1, S>
Sourcepub fn build(self) -> SymbolNodewhere
S: IsComplete,
pub fn build(self) -> SymbolNodewhere
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn text(self, value: &'f1 str) -> SymbolNodeBuilder<'f1, SetText<S>>where
S::Text: IsUnset,
pub fn text(self, value: &'f1 str) -> SymbolNodeBuilder<'f1, SetText<S>>where
S::Text: IsUnset,
Required.
Symbol text for the node
Sourcepub fn height(self, value: f64) -> SymbolNodeBuilder<'f1, SetHeight<S>>where
S::Height: IsUnset,
pub fn height(self, value: f64) -> SymbolNodeBuilder<'f1, SetHeight<S>>where
S::Height: IsUnset,
Sourcepub fn maybe_height(
self,
value: Option<f64>,
) -> SymbolNodeBuilder<'f1, SetHeight<S>>where
S::Height: IsUnset,
pub fn maybe_height(
self,
value: Option<f64>,
) -> SymbolNodeBuilder<'f1, SetHeight<S>>where
S::Height: IsUnset,
Sourcepub fn depth(self, value: f64) -> SymbolNodeBuilder<'f1, SetDepth<S>>where
S::Depth: IsUnset,
pub fn depth(self, value: f64) -> SymbolNodeBuilder<'f1, SetDepth<S>>where
S::Depth: IsUnset,
Sourcepub fn maybe_depth(
self,
value: Option<f64>,
) -> SymbolNodeBuilder<'f1, SetDepth<S>>where
S::Depth: IsUnset,
pub fn maybe_depth(
self,
value: Option<f64>,
) -> SymbolNodeBuilder<'f1, SetDepth<S>>where
S::Depth: IsUnset,
Sourcepub fn italic(self, value: f64) -> SymbolNodeBuilder<'f1, SetItalic<S>>where
S::Italic: IsUnset,
pub fn italic(self, value: f64) -> SymbolNodeBuilder<'f1, SetItalic<S>>where
S::Italic: IsUnset,
Sourcepub fn maybe_italic(
self,
value: Option<f64>,
) -> SymbolNodeBuilder<'f1, SetItalic<S>>where
S::Italic: IsUnset,
pub fn maybe_italic(
self,
value: Option<f64>,
) -> SymbolNodeBuilder<'f1, SetItalic<S>>where
S::Italic: IsUnset,
Sourcepub fn skew(self, value: f64) -> SymbolNodeBuilder<'f1, SetSkew<S>>where
S::Skew: IsUnset,
pub fn skew(self, value: f64) -> SymbolNodeBuilder<'f1, SetSkew<S>>where
S::Skew: IsUnset,
Sourcepub fn maybe_skew(
self,
value: Option<f64>,
) -> SymbolNodeBuilder<'f1, SetSkew<S>>where
S::Skew: IsUnset,
pub fn maybe_skew(
self,
value: Option<f64>,
) -> SymbolNodeBuilder<'f1, SetSkew<S>>where
S::Skew: IsUnset,
Sourcepub fn width(self, value: f64) -> SymbolNodeBuilder<'f1, SetWidth<S>>where
S::Width: IsUnset,
pub fn width(self, value: f64) -> SymbolNodeBuilder<'f1, SetWidth<S>>where
S::Width: IsUnset,
Sourcepub fn maybe_width(
self,
value: Option<f64>,
) -> SymbolNodeBuilder<'f1, SetWidth<S>>where
S::Width: IsUnset,
pub fn maybe_width(
self,
value: Option<f64>,
) -> SymbolNodeBuilder<'f1, SetWidth<S>>where
S::Width: IsUnset,
Sourcepub fn max_font_size(
self,
value: f64,
) -> SymbolNodeBuilder<'f1, SetMaxFontSize<S>>where
S::MaxFontSize: IsUnset,
pub fn max_font_size(
self,
value: f64,
) -> SymbolNodeBuilder<'f1, SetMaxFontSize<S>>where
S::MaxFontSize: IsUnset,
Sourcepub fn maybe_max_font_size(
self,
value: Option<f64>,
) -> SymbolNodeBuilder<'f1, SetMaxFontSize<S>>where
S::MaxFontSize: IsUnset,
pub fn maybe_max_font_size(
self,
value: Option<f64>,
) -> SymbolNodeBuilder<'f1, SetMaxFontSize<S>>where
S::MaxFontSize: IsUnset,
Sourcepub fn classes(self, value: ClassList) -> SymbolNodeBuilder<'f1, SetClasses<S>>where
S::Classes: IsUnset,
pub fn classes(self, value: ClassList) -> SymbolNodeBuilder<'f1, SetClasses<S>>where
S::Classes: IsUnset,
Sourcepub fn maybe_classes(
self,
value: Option<ClassList>,
) -> SymbolNodeBuilder<'f1, SetClasses<S>>where
S::Classes: IsUnset,
pub fn maybe_classes(
self,
value: Option<ClassList>,
) -> SymbolNodeBuilder<'f1, SetClasses<S>>where
S::Classes: IsUnset,
Sourcepub fn style(self, value: CssStyle) -> SymbolNodeBuilder<'f1, SetStyle<S>>where
S::Style: IsUnset,
pub fn style(self, value: CssStyle) -> SymbolNodeBuilder<'f1, SetStyle<S>>where
S::Style: IsUnset,
Sourcepub fn maybe_style(
self,
value: Option<CssStyle>,
) -> SymbolNodeBuilder<'f1, SetStyle<S>>where
S::Style: IsUnset,
pub fn maybe_style(
self,
value: Option<CssStyle>,
) -> SymbolNodeBuilder<'f1, SetStyle<S>>where
S::Style: IsUnset,
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> 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