pub struct MacroRegion { /* private fields */ }Expand description
Byte range of a macro call that contributed to this parse.
Returned by super::AnyParsedStatement::macro_regions.
Implementations§
Source§impl MacroRegion
impl MacroRegion
Sourcepub fn call_offset(&self) -> u32
pub fn call_offset(&self) -> u32
Byte offset of the macro call in the original source.
Sourcepub fn call_length(&self) -> u32
pub fn call_length(&self) -> u32
Byte length of the entire macro call.
Trait Implementations§
Source§impl Clone for MacroRegion
impl Clone for MacroRegion
Source§fn clone(&self) -> MacroRegion
fn clone(&self) -> MacroRegion
Returns a duplicate 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 MacroRegion
impl Debug for MacroRegion
Source§impl PartialEq for MacroRegion
impl PartialEq for MacroRegion
impl Copy for MacroRegion
impl Eq for MacroRegion
impl StructuralPartialEq for MacroRegion
Auto Trait Implementations§
impl Freeze for MacroRegion
impl RefUnwindSafe for MacroRegion
impl Send for MacroRegion
impl Sync for MacroRegion
impl Unpin for MacroRegion
impl UnsafeUnpin for MacroRegion
impl UnwindSafe for MacroRegion
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