pub(crate) struct Namespaces<'input> {
pub(crate) values: Vec<Namespace<'input>>,
pub(crate) tree_order: Vec<NamespaceIdx>,
pub(crate) sorted_order: Vec<NamespaceIdx>,
}
Fields§
§values: Vec<Namespace<'input>>
§tree_order: Vec<NamespaceIdx>
§sorted_order: Vec<NamespaceIdx>
Implementations§
Source§impl<'input> Namespaces<'input>
impl<'input> Namespaces<'input>
pub(crate) fn push_ns( &mut self, name: Option<&'input str>, uri: StringStorage<'input>, ) -> Result<(), Error>
pub(crate) fn push_ref(&mut self, tree_idx: usize)
pub(crate) fn exists(&self, start: usize, prefix: Option<&str>) -> bool
pub(crate) fn shrink_to_fit(&mut self)
pub(crate) fn get(&self, idx: NamespaceIdx) -> &Namespace<'input>
Trait Implementations§
Source§impl<'input> Default for Namespaces<'input>
impl<'input> Default for Namespaces<'input>
Source§fn default() -> Namespaces<'input>
fn default() -> Namespaces<'input>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'input> Freeze for Namespaces<'input>
impl<'input> RefUnwindSafe for Namespaces<'input>
impl<'input> Send for Namespaces<'input>
impl<'input> Sync for Namespaces<'input>
impl<'input> Unpin for Namespaces<'input>
impl<'input> UnwindSafe for Namespaces<'input>
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