pub struct ExpansionOrigin {
pub expanded: Range<usize>,
pub original: SourceSpan,
pub exact: bool,
}Expand description
A contiguous expansion segment and the source bytes responsible for it.
Fields§
§expanded: Range<usize>§original: SourceSpan§exact: boolTrue for a byte-for-byte copy. False for a variable substitution or a separator inserted at an include boundary.
Trait Implementations§
Source§impl Clone for ExpansionOrigin
impl Clone for ExpansionOrigin
Auto Trait Implementations§
impl Freeze for ExpansionOrigin
impl RefUnwindSafe for ExpansionOrigin
impl Send for ExpansionOrigin
impl Sync for ExpansionOrigin
impl Unpin for ExpansionOrigin
impl UnsafeUnpin for ExpansionOrigin
impl UnwindSafe for ExpansionOrigin
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