pub struct NodeBuilder { /* private fields */ }Implementations§
Source§impl NodeBuilder
impl NodeBuilder
pub fn new(tag: impl Into<String>) -> Self
pub fn attr(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn attrs<I, K, V>(self, attrs: I) -> Self
pub fn children(self, children: impl IntoIterator<Item = Node>) -> Self
pub fn bytes(self, bytes: impl Into<Vec<u8>>) -> Self
pub fn string_content(self, s: impl Into<String>) -> Self
pub fn build(self) -> Node
pub fn apply_content(self, content: Option<NodeContent>) -> Self
Trait Implementations§
Source§impl Debug for NodeBuilder
impl Debug for NodeBuilder
Source§impl Default for NodeBuilder
impl Default for NodeBuilder
Source§fn default() -> NodeBuilder
fn default() -> NodeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NodeBuilder
impl RefUnwindSafe for NodeBuilder
impl Send for NodeBuilder
impl Sync for NodeBuilder
impl Unpin for NodeBuilder
impl UnwindSafe for NodeBuilder
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