[−][src]Struct ddbug_parser::LocalVariable
A local variable.
Implementations
impl<'input> LocalVariable<'input>
[src]
pub fn name(&self) -> Option<&'input str>
[src]
The name of the variable.
pub fn type_offset(&self) -> TypeOffset
[src]
The type offset of the variable.
A type offset is unique for all types in a file.
pub fn ty<'a>(
&self,
hash: &'a FileHash<'input>
) -> Option<Cow<'a, Type<'input>>>
[src]
&self,
hash: &'a FileHash<'input>
) -> Option<Cow<'a, Type<'input>>>
The type of the variable.
Returns None
if the type is invalid.
pub fn source(&self) -> &Source<'input>
[src]
The source information for the variable.
pub fn address(&self) -> Option<u64>
[src]
The address of the variable.
This will only be known for static variables.
pub fn byte_size(&self, hash: &FileHash<'_>) -> Option<u64>
[src]
The size in bytes of the variable.
pub fn registers<'a>(&'a self) -> impl Iterator<Item = (Range, Register)> + 'a
[src]
The registers in which this variable is stored.
pub fn register_offsets<'a>(
&'a self
) -> impl Iterator<Item = (Range, Register, i64)> + 'a
[src]
&'a self
) -> impl Iterator<Item = (Range, Register, i64)> + 'a
The registers pointing to where this variable is stored.
pub fn frame_locations<'a>(&'a self) -> impl Iterator<Item = FrameLocation> + 'a
[src]
The stack frame locations at which this variable is stored.
pub fn cmp_id(
_hash_a: &FileHash<'_>,
a: &Self,
_hash_b: &FileHash<'_>,
b: &Self
) -> Ordering
[src]
_hash_a: &FileHash<'_>,
a: &Self,
_hash_b: &FileHash<'_>,
b: &Self
) -> Ordering
Compare the identifying information of two variables.
Variables are considered equal if their names are equal.
This can be used to sort, and to determine if two variables refer to the same definition (even if there are differences in the definitions).
Trait Implementations
impl<'input> Clone for LocalVariable<'input>
[src]
pub fn clone(&self) -> LocalVariable<'input>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'input> Debug for LocalVariable<'input>
[src]
impl<'input> Default for LocalVariable<'input>
[src]
pub fn default() -> LocalVariable<'input>
[src]
Auto Trait Implementations
impl<'input> RefUnwindSafe for LocalVariable<'input>
[src]
impl<'input> Send for LocalVariable<'input>
[src]
impl<'input> Sync for LocalVariable<'input>
[src]
impl<'input> Unpin for LocalVariable<'input>
[src]
impl<'input> UnwindSafe for LocalVariable<'input>
[src]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,