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 Markpub fn fresh(parent: Mark) -> Self[src] 
pub fn fresh(parent: Mark) -> Selfpub fn root() -> Self[src] 
pub fn root() -> SelfThe mark of the theoretical expansion that generates freshly parsed, unexpanded AST.
pub fn as_u32(self) -> u32[src] 
pub fn as_u32(self) -> u32pub fn from_u32(raw: u32) -> Mark[src] 
pub fn from_u32(raw: u32) -> Markpub 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) -> Markpub fn transparency(self) -> Transparency[src] 
pub fn transparency(self) -> Transparencypub 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) -> boolpub 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) -> boolpub fn least_ancestor(a: Mark, b: Mark) -> Mark[src] 
pub fn least_ancestor(a: Mark, b: Mark) -> MarkComputes 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 Markimpl Clone for Mark[src] 
impl Clone for Markfn clone(&self) -> Mark[src] 
fn clone(&self) -> MarkReturns 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 Markfn eq(&self, other: &Mark) -> bool[src] 
fn eq(&self, other: &Mark) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for Mark[src] 
impl Eq for Markimpl Hash for Mark[src] 
impl Hash for Markfn 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 Markfn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Encodable for Mark[src] 
impl Encodable for Markimpl Decodable for Mark[src] 
impl Decodable for Mark