pub struct NodeArray(/* private fields */);Implementations§
Source§impl NodeArray
impl NodeArray
pub fn get(&self, index: usize) -> Option<NodeId>
pub fn push(&mut self, node_id: NodeId) -> Result<(), InsertErrorKind>
pub fn add_at( &mut self, index: usize, node_id: NodeId, ) -> Result<(), InsertErrorKind>
pub fn to_vec(&self) -> Vec<NodeId>
pub fn from_vec(vec: Vec<NodeId>) -> Self
Trait Implementations§
Source§impl IntoIterator for NodeArray
impl IntoIterator for NodeArray
Source§impl<'doc> ParseDocument<'doc> for &'doc NodeArray
impl<'doc> ParseDocument<'doc> for &'doc NodeArray
Source§type Error = ParseError
type Error = ParseError
The error type returned by parsing.
impl Eq for NodeArray
impl StructuralPartialEq for NodeArray
Auto Trait Implementations§
impl Freeze for NodeArray
impl RefUnwindSafe for NodeArray
impl Send for NodeArray
impl Sync for NodeArray
impl Unpin for NodeArray
impl UnwindSafe for NodeArray
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.