pub struct ExpnGlobals {
pub serialize: bool,
pub def_site: usize,
pub call_site: usize,
pub mixed_site: usize,
}
Expand description
Represents global expansion settings, including span resolution.
Fields§
§serialize: bool
Determines whether to serialize the expansion settings.
def_site: usize
Defines the def_site
span location.
call_site: usize
Defines the call_site
span location.
mixed_site: usize
Defines the mixed_site
span location.
Trait Implementations§
Source§impl Clone for ExpnGlobals
impl Clone for ExpnGlobals
Source§fn clone(&self) -> ExpnGlobals
fn clone(&self) -> ExpnGlobals
Returns a copy 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 ExpnGlobals
impl Debug for ExpnGlobals
Source§impl Default for ExpnGlobals
impl Default for ExpnGlobals
Source§fn default() -> ExpnGlobals
fn default() -> ExpnGlobals
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExpnGlobals
impl<'de> Deserialize<'de> for ExpnGlobals
Source§fn 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
Source§impl Serialize for ExpnGlobals
impl Serialize for ExpnGlobals
impl Copy for ExpnGlobals
Auto Trait Implementations§
impl Freeze for ExpnGlobals
impl RefUnwindSafe for ExpnGlobals
impl Send for ExpnGlobals
impl Sync for ExpnGlobals
impl Unpin for ExpnGlobals
impl UnwindSafe for ExpnGlobals
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more