Enum parser_c::data::node::NodeInfo
[−]
pub enum NodeInfo { OnlyPos(Position, PosLength), NodeInfo(Position, PosLength, Name), }
Variants
OnlyPos(Position, PosLength)
NodeInfo(Position, PosLength, Name)
Methods
impl NodeInfo
[src]
fn internal() -> NodeInfo
fn undef() -> NodeInfo
fn new(pos: Position, lasttok: PosLength, name: Name) -> NodeInfo
fn with_only_pos(pos: Position) -> NodeInfo
fn with_pos_len(a: Position, b: PosLength) -> NodeInfo
fn with_pos_name(pos: Position, name: Name) -> NodeInfo
fn len(&self) -> Option<isize>
fn get_last_token_pos(&self) -> &PosLength
fn name(&self) -> Option<Name>
Trait Implementations
impl CNode for NodeInfo
[src]
fn node_info(&self) -> &NodeInfo
fn into_node_info(self) -> NodeInfo
impl Clone for NodeInfo
[src]
fn clone(&self) -> NodeInfo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for NodeInfo
[src]
impl Ord for NodeInfo
[src]
fn cmp(&self, __arg_0: &NodeInfo) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
ord_max_min
)Compares and returns the minimum of two values. Read more
impl PartialEq for NodeInfo
[src]
fn eq(&self, __arg_0: &NodeInfo) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NodeInfo) -> bool
This method tests for !=
.
impl PartialOrd for NodeInfo
[src]
fn partial_cmp(&self, __arg_0: &NodeInfo) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &NodeInfo) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &NodeInfo) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &NodeInfo) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &NodeInfo) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for NodeInfo
[src]
fn hash<__H: Hasher>(&self, __arg_0: &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
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more