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
Source§fn clone(&self) -> ExpansionOrigin
fn clone(&self) -> ExpansionOrigin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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§
impl<T> Allocation for T
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