pub struct BareSourceLocation {
pub offset: usize,
pub file: Arc<str>,
pub line: usize,
pub presumed_file: Option<Arc<str>>,
pub presumed_line: Option<usize>,
pub col: usize,
pub tok_len: usize,
pub included_from: Option<IncludedFrom>,
pub is_macro_arg_expansion: bool,
}
Fields§
§offset: usize
§file: Arc<str>
§line: usize
§presumed_file: Option<Arc<str>>
§presumed_line: Option<usize>
§col: usize
§tok_len: usize
§included_from: Option<IncludedFrom>
§is_macro_arg_expansion: bool
Trait Implementations§
Source§impl Clone for BareSourceLocation
impl Clone for BareSourceLocation
Source§fn clone(&self) -> BareSourceLocation
fn clone(&self) -> BareSourceLocation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BareSourceLocation
impl Debug for BareSourceLocation
Source§impl<'de> Deserialize<'de> for BareSourceLocation
impl<'de> Deserialize<'de> for BareSourceLocation
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for BareSourceLocation
impl Hash for BareSourceLocation
Source§impl PartialEq for BareSourceLocation
impl PartialEq for BareSourceLocation
Source§impl Serialize for BareSourceLocation
impl Serialize for BareSourceLocation
impl Eq for BareSourceLocation
impl StructuralPartialEq for BareSourceLocation
Auto Trait Implementations§
impl Freeze for BareSourceLocation
impl RefUnwindSafe for BareSourceLocation
impl Send for BareSourceLocation
impl Sync for BareSourceLocation
impl Unpin for BareSourceLocation
impl UnwindSafe for BareSourceLocation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more