Struct syntax::ast_util::IdRangeUnstable [-] [+] [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 Debug for IdRange

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

impl Decodable for IdRange

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

impl Encodable for IdRange

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