[−][src]Struct kg_diag::io::Quote
Methods
impl Quote
[src]
pub fn new<'a>(
path: Option<&Path>,
data: &[u8],
from: Position,
to: Position,
lines_before: u32,
lines_after: u32,
message: Cow<'a, str>
) -> Quote
[src]
path: Option<&Path>,
data: &[u8],
from: Position,
to: Position,
lines_before: u32,
lines_after: u32,
message: Cow<'a, str>
) -> Quote
pub fn from(&self) -> Position
[src]
pub fn to(&self) -> Position
[src]
pub fn span(&self) -> Span
[src]
pub fn message(&self) -> &str
[src]
pub fn offset(&self) -> usize
[src]
pub fn line(&self) -> u32
[src]
pub fn source(&self) -> &str
[src]
Trait Implementations
impl Clone for Quote
[src]
fn clone(&self) -> Quote
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for Quote
[src]
impl Debug for Quote
[src]
Auto Trait Implementations
impl Send for Quote
impl Unpin for Quote
impl Sync for Quote
impl UnwindSafe for Quote
impl RefUnwindSafe for Quote
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,