pub struct Children { /* private fields */ }
Implementations§
Source§impl Children
impl Children
Sourcepub fn add_spec_hierarchy(
&mut self,
spec_hierarchy: SpecHierarchy,
depth: i32,
) -> Result<()>
pub fn add_spec_hierarchy( &mut self, spec_hierarchy: SpecHierarchy, depth: i32, ) -> Result<()>
Adds the spec_hierarchy
as the last children in the given depth
.
a depth
of 0 means add the spec as direct children.
§Panics:
Panic will occur in case that any intermediate level is missing.
pub fn new() -> Self
pub fn get_spec_hierarchy(&self) -> &Vec<SpecHierarchy>
Trait Implementations§
Source§impl YaSerialize for Children
impl YaSerialize for Children
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace, ) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl StructuralPartialEq for Children
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