Skip to main content

VisItemInnerError

Enum VisItemInnerError 

Source
pub enum VisItemInnerError {
Show 15 variants Module(ParserError<Module>), ExternCrate(ParserError<ExternCrate>), Use(ParserError<UseDeclaration>), Function(ParserError<Function>), TypeAlias(ParserError<TypeAlias>), Struct(ParserError<Struct>), Enum(ParserError<Enumeration>), Union(ParserError<Union>), Constant(ParserError<ConstantItem>), Static(ParserError<StaticItem>), Trait(ParserError<Trait>), Implementation(ParserError<Implementation>), ExternBlock(ParserError<ExternBlock>), DeclMacro(ParserError<DeclMacro>), Unknown {
Show 14 fields module_err: ParserError<Module>, extern_crate_err: ParserError<ExternCrate>, use_err: ParserError<UseDeclaration>, function_err: ParserError<Function>, type_alias_err: ParserError<TypeAlias>, struct_err: ParserError<Struct>, enum_err: ParserError<Enumeration>, union_err: ParserError<Union>, constant_err: ParserError<ConstantItem>, static_err: ParserError<StaticItem>, trait_err: ParserError<Trait>, implementation_err: ParserError<Implementation>, extern_block_err: ParserError<ExternBlock>, decl_macro_err: ParserError<DeclMacro>,
},
}

Variants§

Trait Implementations§

Source§

impl Debug for VisItemInnerError

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ParseError for VisItemInnerError

Source§

fn is_fatal(&self) -> bool

Returns whether this error is fatal
Source§

fn pos(&self) -> Option<AstPos>

Returns the position at which this error occurred.
Source§

fn to_app_error(&self, parser: &Parser) -> AppError

Converts this error type to an AppError

Auto Trait Implementations§

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<R, T> FromRecursiveRoot<R> for T
where T: From<R>,

Source§

fn from_recursive_root(root: R, _parser: &mut Parser) -> T

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<R> IntoRecursiveRoot<R> for R

Source§

fn into_recursive_root(self, _parser: &mut Parser) -> R

Source§

impl<T, R> ParsableFrom<RecursiveWrapper<T, R>> for T

Source§

fn from_parsable(wrapper: RecursiveWrapper<T, R>) -> T

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<R> TryFromRecursiveRoot<R> for R

Source§

fn try_from_recursive_root(root: R, _parser: &mut Parser) -> Option<R>

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more