Struct syntax_pos::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) -> Self
[src]
pub fn fresh(parent: Mark) -> Self
pub fn fresh_cloned(clone_from: Mark) -> Self
[src]
pub fn fresh_cloned(clone_from: Mark) -> Self
pub fn root() -> Self
[src]
pub fn root() -> Self
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 transparency(self) -> Transparency
[src]
pub fn transparency(self) -> Transparency
pub fn set_transparency(self, transparency: Transparency)
[src]
pub fn set_transparency(self, transparency: Transparency)
pub fn is_builtin(self) -> bool
[src]
pub fn is_builtin(self) -> bool
pub fn set_is_builtin(self, is_builtin: bool)
[src]
pub fn set_is_builtin(self, is_builtin: bool)
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 Copy for Mark
[src]
impl Copy for Mark
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 PartialEq for Mark
[src]
impl PartialEq for Mark
fn eq(&self, other: &Mark) -> bool
[src]
fn eq(&self, other: &Mark) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Mark) -> bool
[src]
fn ne(&self, other: &Mark) -> bool
This method tests for !=
.
impl Eq for Mark
[src]
impl Eq for Mark
impl Hash for Mark
[src]
impl Hash for Mark
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
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 Debug for Mark
[src]
impl Debug for Mark
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Encodable for Mark
[src]
impl Encodable for Mark
impl Decodable for Mark
[src]
impl Decodable for Mark