Struct syntax::ast_util::IdRangeExperimental [-]  [+] [src]

pub struct IdRange {
    pub min: NodeId,
    pub max: NodeId,
}

Fields

min
max

Methods

impl IdRange

fn max() -> IdRange

fn empty(&self) -> bool

fn add(&mut self, id: NodeId)

Trait Implementations

Derived Implementations

impl Copy for IdRange

impl Show for IdRange

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for IdRange

fn decode(__arg_0: &mut __D) -> Result<IdRange, __E>

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for IdRange

fn encode(&self, __arg_0: &mut __S) -> Result<(), __E>