pub enum LibraryKind {
BuiltIn,
Optional,
User,
}Expand description
Where a resolved library’s definitions came from.
Variants§
BuiltIn
Embedded in the compiler binary; available without installing
anything (std.*).
Optional
Found on a configured library search path.
User
Found relative to the importing document (<base_dir>/lib/<name>/).
Implementations§
Trait Implementations§
Source§impl Clone for LibraryKind
impl Clone for LibraryKind
Source§fn clone(&self) -> LibraryKind
fn clone(&self) -> LibraryKind
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 moreimpl Copy for LibraryKind
Source§impl Debug for LibraryKind
impl Debug for LibraryKind
impl Eq for LibraryKind
Source§impl PartialEq for LibraryKind
impl PartialEq for LibraryKind
impl StructuralPartialEq for LibraryKind
Auto Trait Implementations§
impl Freeze for LibraryKind
impl RefUnwindSafe for LibraryKind
impl Send for LibraryKind
impl Sync for LibraryKind
impl Unpin for LibraryKind
impl UnsafeUnpin for LibraryKind
impl UnwindSafe for LibraryKind
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.