Struct clang_ast::BareSourceLocation
source · [−]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
sourceimpl Clone for BareSourceLocation
impl Clone for BareSourceLocation
sourcefn clone(&self) -> BareSourceLocation
fn clone(&self) -> BareSourceLocation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BareSourceLocation
impl Debug for BareSourceLocation
sourceimpl<'de> Deserialize<'de> for BareSourceLocation
impl<'de> Deserialize<'de> for BareSourceLocation
sourcefn 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
sourceimpl Serialize for BareSourceLocation
impl Serialize for BareSourceLocation
Auto Trait Implementations
impl RefUnwindSafe for BareSourceLocation
impl Send for BareSourceLocation
impl Sync for BareSourceLocation
impl Unpin for BareSourceLocation
impl UnwindSafe for BareSourceLocation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more