GraphUnitDeclTwice

Struct GraphUnitDeclTwice 

Source
pub struct GraphUnitDeclTwice<unit, new_site, prior, prior_site> {
    pub unit: unit,
    pub new_site: new_site,
    pub prior: prior,
    pub prior_site: prior_site,
}
Expand description

Error message for an object that was defined twice when only one declaration should exist.

Fields§

§unit: unit

Display of the redefined object.

§new_site: new_site

Location of the superfluous definition.

§prior: prior

Item that defined the object previously.

§prior_site: prior_site

Location of the first definition.

Trait Implementations§

Source§

impl<unit, new_site, prior, prior_site> IntoError for GraphUnitDeclTwice<unit, new_site, prior, prior_site>
where unit: Display, new_site: TrySpan, prior: Display, prior_site: TrySpan,

Source§

fn into_err(self) -> Error

Produce the sequence of spans and help messages.

Auto Trait Implementations§

§

impl<unit, new_site, prior, prior_site> Freeze for GraphUnitDeclTwice<unit, new_site, prior, prior_site>
where unit: Freeze, new_site: Freeze, prior: Freeze, prior_site: Freeze,

§

impl<unit, new_site, prior, prior_site> RefUnwindSafe for GraphUnitDeclTwice<unit, new_site, prior, prior_site>
where unit: RefUnwindSafe, new_site: RefUnwindSafe, prior: RefUnwindSafe, prior_site: RefUnwindSafe,

§

impl<unit, new_site, prior, prior_site> Send for GraphUnitDeclTwice<unit, new_site, prior, prior_site>
where unit: Send, new_site: Send, prior: Send, prior_site: Send,

§

impl<unit, new_site, prior, prior_site> Sync for GraphUnitDeclTwice<unit, new_site, prior, prior_site>
where unit: Sync, new_site: Sync, prior: Sync, prior_site: Sync,

§

impl<unit, new_site, prior, prior_site> Unpin for GraphUnitDeclTwice<unit, new_site, prior, prior_site>
where unit: Unpin, new_site: Unpin, prior: Unpin, prior_site: Unpin,

§

impl<unit, new_site, prior, prior_site> UnwindSafe for GraphUnitDeclTwice<unit, new_site, prior, prior_site>
where unit: UnwindSafe, new_site: UnwindSafe, prior: UnwindSafe, prior_site: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.