[−][src]Struct bracket::error::source::ErrorInfo
Encapsulates the 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) -> Self
[src]
pub fn new_notes(
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
pub fn file_name(&self) -> &str
[src]
👎 Deprecated
pub fn notes(&self) -> &Vec<String>
[src]
👎 Deprecated
pub fn source(&self) -> &'source str
[src]
👎 Deprecated
pub fn position(&self) -> &SourcePos
[src]
👎 Deprecated
Trait Implementations
impl<'_> Debug for ErrorInfo<'_>
[src]
impl<'source> Eq for ErrorInfo<'source>
[src]
impl<'_> Into<String> for ErrorInfo<'_>
[src]
impl<'source> PartialEq<ErrorInfo<'source>> for ErrorInfo<'source>
[src]
fn eq(&self, other: &ErrorInfo<'source>) -> bool
[src]
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>,