[−][src]Struct bracket::error::source::ErrorInfo
Information needed to generate a source code snippet.
Implementations
impl<'source> ErrorInfo<'source>
[src]
pub fn new(
source: &'source str,
file_name: &str,
source_pos: SourcePos,
notes: Vec<String>
) -> Self
[src]
source: &'source str,
file_name: &str,
source_pos: SourcePos,
notes: Vec<String>
) -> Self
Create a new error info.
Trait Implementations
impl<'_> Debug for ErrorInfo<'_>
[src]
impl<'source> Eq for ErrorInfo<'source>
[src]
impl<'source, '_> From<(&'source str, &'_ mut ParseState, Vec<String, Global>)> for ErrorInfo<'source>
[src]
impl<'source, '_> From<(&'source str, &'_ mut ParseState)> for ErrorInfo<'source>
[src]
impl<'_> Into<String> for ErrorInfo<'_>
[src]
impl<'source> PartialEq<ErrorInfo<'source>> for ErrorInfo<'source>
[src]
pub fn eq(&self, other: &ErrorInfo<'source>) -> bool
[src]
pub fn ne(&self, other: &ErrorInfo<'source>) -> bool
[src]
impl<'source> StructuralEq for ErrorInfo<'source>
[src]
impl<'source> StructuralPartialEq for ErrorInfo<'source>
[src]
Auto Trait Implementations
impl<'source> RefUnwindSafe for ErrorInfo<'source>
impl<'source> Send for ErrorInfo<'source>
impl<'source> Sync for ErrorInfo<'source>
impl<'source> Unpin for ErrorInfo<'source>
impl<'source> UnwindSafe for ErrorInfo<'source>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,