pub struct LinkedModule {
pub name: String,
pub path: PathBuf,
pub typed: bool,
}Expand description
One linked module: where it came from and how it was stored.
Fields§
§name: StringThe module name a require reaches it by, which is the name it takes in the
bundle — not its path.
path: PathBufThe file it was read from, for a report that wants to name something openable.
typed: booltrue for a .tl that was checked and generated, false for a .lua taken as
it was. Only the typed ones have a store entry, so this is what
Linked::cached counts against.
Trait Implementations§
Source§impl Clone for LinkedModule
impl Clone for LinkedModule
Source§fn clone(&self) -> LinkedModule
fn clone(&self) -> LinkedModule
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 moreAuto Trait Implementations§
impl Freeze for LinkedModule
impl RefUnwindSafe for LinkedModule
impl Send for LinkedModule
impl Sync for LinkedModule
impl Unpin for LinkedModule
impl UnsafeUnpin for LinkedModule
impl UnwindSafe for LinkedModule
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more