Struct syntax_pos::hygiene::Mark
[−]
[src]
pub struct Mark(_);
A mark is a unique id associated with a macro expansion.
Methods
impl Mark
[src]
pub fn fresh(parent: Mark) -> Self
[src]
pub fn root() -> Self
[src]
The mark of the theoretical expansion that generates freshly parsed, unexpanded AST.
pub fn as_u32(self) -> u32
[src]
pub fn from_u32(raw: u32) -> Mark
[src]
pub fn expn_info(self) -> Option<ExpnInfo>
[src]
pub fn set_expn_info(self, info: ExpnInfo)
[src]
pub fn modern(self) -> Mark
[src]
pub fn kind(self) -> MarkKind
[src]
pub fn set_kind(self, kind: MarkKind)
[src]
pub fn is_descendant_of(self, ancestor: Mark) -> bool
[src]
Trait Implementations
impl Copy for Mark
[src]
impl Clone for Mark
[src]
fn clone(&self) -> Mark
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Mark
[src]
fn eq(&self, __arg_0: &Mark) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Mark) -> bool
[src]
This method tests for !=
.
impl Eq for Mark
[src]
impl Hash for Mark
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Mark
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more