pub struct ResolvedNamespace(/* private fields */);Expand description
Resolved namespace with both identifier and definition
Implementations§
Source§impl ResolvedNamespace
impl ResolvedNamespace
pub fn new(identifier: Fragment, def: NamespaceDef) -> Self
Sourcepub fn def(&self) -> &NamespaceDef
pub fn def(&self) -> &NamespaceDef
Get the namespace def
Sourcepub fn to_static(&self) -> ResolvedNamespace
pub fn to_static(&self) -> ResolvedNamespace
Convert to owned version with ’static lifetime
Trait Implementations§
Source§impl Clone for ResolvedNamespace
impl Clone for ResolvedNamespace
Source§fn clone(&self) -> ResolvedNamespace
fn clone(&self) -> ResolvedNamespace
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedNamespace
impl RefUnwindSafe for ResolvedNamespace
impl Send for ResolvedNamespace
impl Sync for ResolvedNamespace
impl Unpin for ResolvedNamespace
impl UnwindSafe for ResolvedNamespace
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