pub struct DuplicateNameError {
pub name: Ident,
pub first: SourceLocation,
pub second: SourceLocation,
pub first_crate: Option<String>,
pub second_crate: Option<String>,
}Expand description
Payload of ScanError::DuplicateName, boxed to keep the error enum
small (clippy::result_large_err).
Fields§
§name: Ident§first: SourceLocation§second: SourceLocation§first_crate: Option<String>Origin crates of the colliding items, when known (multi-source
ingestion via several Flat::builder().source(..) feeders) — the SourceLocation
file paths are crate-relative, so with several sources they alone
may not identify the colliding crates.
second_crate: Option<String>Trait Implementations§
Auto Trait Implementations§
impl !Send for DuplicateNameError
impl !Sync for DuplicateNameError
impl Freeze for DuplicateNameError
impl RefUnwindSafe for DuplicateNameError
impl Unpin for DuplicateNameError
impl UnsafeUnpin for DuplicateNameError
impl UnwindSafe for DuplicateNameError
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> 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