Enum rustc_metadata::locator::CrateError
source · pub(crate) enum CrateError {
NonAsciiName(Symbol),
ExternLocationNotExist(Symbol, PathBuf),
ExternLocationNotFile(Symbol, PathBuf),
MultipleCandidates(Symbol, CrateFlavor, Vec<PathBuf>),
SymbolConflictsCurrent(Symbol),
StableCrateIdCollision(Symbol, Symbol),
DlOpen(String),
DlSym(String),
LocatorCombined(Box<CombinedLocatorError>),
NonDylibPlugin(Symbol),
NotFound(Symbol),
}
Variants§
NonAsciiName(Symbol)
ExternLocationNotExist(Symbol, PathBuf)
ExternLocationNotFile(Symbol, PathBuf)
MultipleCandidates(Symbol, CrateFlavor, Vec<PathBuf>)
SymbolConflictsCurrent(Symbol)
StableCrateIdCollision(Symbol, Symbol)
DlOpen(String)
DlSym(String)
LocatorCombined(Box<CombinedLocatorError>)
NonDylibPlugin(Symbol)
NotFound(Symbol)
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for CrateError
impl Send for CrateError
impl Sync for CrateError
impl Unpin for CrateError
impl UnwindSafe for CrateError
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
NonAsciiName
: 7 bytesExternLocationNotExist
: 31 bytesExternLocationNotFile
: 31 bytesMultipleCandidates
: 31 bytesSymbolConflictsCurrent
: 7 bytesStableCrateIdCollision
: 11 bytesDlOpen
: 31 bytesDlSym
: 31 bytesLocatorCombined
: 15 bytesNonDylibPlugin
: 7 bytesNotFound
: 7 bytes