pub enum Children {
Single(Box<AnyNode>),
StaticMultiple(Rc<Vec<AnyNode>>),
}
Expand description
One or many AnyNode
s whose order will
never change.
When Children
is used as
Variants§
Implementations§
Source§impl Children
impl Children
pub fn from_static_nodes<T: IntoIterator<Item = AnyNode>>(nodes: T) -> Self
pub fn from_single(node: AnyNode) -> Children
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Children
impl !RefUnwindSafe for Children
impl !Send for Children
impl !Sync for Children
impl Unpin for Children
impl !UnwindSafe for Children
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