pub struct SvgNodeBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> SvgNodeBuilder<S>
impl<S: State> SvgNodeBuilder<S>
Sourcepub fn build(self) -> SvgNodewhere
S: IsComplete,
pub fn build(self) -> SvgNodewhere
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn children(
self,
value: Vec<SvgChildNode>,
) -> SvgNodeBuilder<SetChildren<S>>where
S::Children: IsUnset,
pub fn children(
self,
value: Vec<SvgChildNode>,
) -> SvgNodeBuilder<SetChildren<S>>where
S::Children: IsUnset,
Required.
Children for the SVG node
Sourcepub fn attributes(
self,
value: KeyMap<String, String>,
) -> SvgNodeBuilder<SetAttributes<S>>where
S::Attributes: IsUnset,
pub fn attributes(
self,
value: KeyMap<String, String>,
) -> SvgNodeBuilder<SetAttributes<S>>where
S::Attributes: IsUnset,
Sourcepub fn maybe_attributes(
self,
value: Option<KeyMap<String, String>>,
) -> SvgNodeBuilder<SetAttributes<S>>where
S::Attributes: IsUnset,
pub fn maybe_attributes(
self,
value: Option<KeyMap<String, String>>,
) -> SvgNodeBuilder<SetAttributes<S>>where
S::Attributes: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for SvgNodeBuilder<S>
impl<S> RefUnwindSafe for SvgNodeBuilder<S>
impl<S> Send for SvgNodeBuilder<S>
impl<S> Sync for SvgNodeBuilder<S>
impl<S> Unpin for SvgNodeBuilder<S>
impl<S> UnwindSafe for SvgNodeBuilder<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