pub struct LibraryRef {
pub library: String,
pub name: String,
}Expand description
Resolved 2-segment library reference tuple (library, name).
library = "" means “no library prefix”; in this case the
caller must supply a default library scope.
Fields§
§library: StringName of the library ("" if not qualified).
name: StringName of the item within the library.
Implementations§
Source§impl LibraryRef
impl LibraryRef
Sourcepub fn is_qualified(&self) -> bool
pub fn is_qualified(&self) -> bool
true if the reference is qualified (library::name).
Trait Implementations§
Source§impl Clone for LibraryRef
impl Clone for LibraryRef
Source§fn clone(&self) -> LibraryRef
fn clone(&self) -> LibraryRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LibraryRef
impl Debug for LibraryRef
impl Eq for LibraryRef
Source§impl PartialEq for LibraryRef
impl PartialEq for LibraryRef
Source§fn eq(&self, other: &LibraryRef) -> bool
fn eq(&self, other: &LibraryRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LibraryRef
Auto Trait Implementations§
impl Freeze for LibraryRef
impl RefUnwindSafe for LibraryRef
impl Send for LibraryRef
impl Sync for LibraryRef
impl Unpin for LibraryRef
impl UnsafeUnpin for LibraryRef
impl UnwindSafe for LibraryRef
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