pub struct ResolvedNamespace<'a>(/* private fields */);Expand description
Resolved namespace with both identifier and definition
Implementations§
Source§impl<'a> ResolvedNamespace<'a>
impl<'a> ResolvedNamespace<'a>
pub fn new(identifier: Fragment<'a>, def: NamespaceDef) -> Self
Sourcepub fn def(&self) -> &NamespaceDef
pub fn def(&self) -> &NamespaceDef
Get the namespace def
Sourcepub fn to_static(&self) -> ResolvedNamespace<'static>
pub fn to_static(&self) -> ResolvedNamespace<'static>
Convert to owned version with ’static lifetime
Trait Implementations§
Source§impl<'a> Clone for ResolvedNamespace<'a>
impl<'a> Clone for ResolvedNamespace<'a>
Source§fn clone(&self) -> ResolvedNamespace<'a>
fn clone(&self) -> ResolvedNamespace<'a>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ResolvedNamespace<'a>
impl<'a> RefUnwindSafe for ResolvedNamespace<'a>
impl<'a> Send for ResolvedNamespace<'a>
impl<'a> Sync for ResolvedNamespace<'a>
impl<'a> Unpin for ResolvedNamespace<'a>
impl<'a> UnwindSafe for ResolvedNamespace<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)