Struct syntax::ext::hygiene::Mark [−][src]
pub struct Mark(_);
A mark is a unique id associated with a macro expansion.
Methods
impl Mark
[src]
impl Mark
pub fn fresh(parent: Mark) -> Mark
[src]
pub fn fresh(parent: Mark) -> Mark
pub fn root() -> Mark
[src]
pub fn root() -> Mark
The mark of the theoretical expansion that generates freshly parsed, unexpanded AST.
pub fn as_u32(self) -> u32
[src]
pub fn as_u32(self) -> u32
pub fn from_u32(raw: u32) -> Mark
[src]
pub fn from_u32(raw: u32) -> Mark
pub fn expn_info(self) -> Option<ExpnInfo>
[src]
pub fn expn_info(self) -> Option<ExpnInfo>
pub fn set_expn_info(self, info: ExpnInfo)
[src]
pub fn set_expn_info(self, info: ExpnInfo)
pub fn modern(self) -> Mark
[src]
pub fn modern(self) -> Mark
pub fn kind(self) -> MarkKind
[src]
pub fn kind(self) -> MarkKind
pub fn set_kind(self, kind: MarkKind)
[src]
pub fn set_kind(self, kind: MarkKind)
pub fn is_descendant_of(self, ancestor: Mark) -> bool
[src]
pub fn is_descendant_of(self, ancestor: Mark) -> bool
pub fn least_ancestor(a: Mark, b: Mark) -> Mark
[src]
pub fn least_ancestor(a: Mark, b: Mark) -> Mark
Computes a mark such that both input marks are descendants of (or equal to) the returned mark. That is, the following holds:
let la = least_ancestor(a, b); assert!(a.is_descendant_of(la)) assert!(b.is_descendant_of(la))
Trait Implementations
impl Decodable for Mark
[src]
impl Decodable for Mark
impl Hash for Mark
[src]
impl Hash for Mark
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for Mark
[src]
impl Clone for Mark
fn clone(&self) -> Mark
[src]
fn clone(&self) -> Mark
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Mark
[src]
impl Debug for Mark
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Encodable for Mark
[src]
impl Encodable for Mark
impl Copy for Mark
[src]
impl Copy for Mark
impl Eq for Mark
[src]
impl Eq for Mark
impl PartialEq<Mark> for Mark
[src]
impl PartialEq<Mark> for Mark