#[repr(i32)]
pub enum Class {
Unspecified,
Type,
Expression,
Relation,
}Expand description
Semantic classification of a node.
Variants
Unspecified
Type
This node represents a data type.
Expression
This node represents an expression.
Relation
This node represents a relation.
Implementations
Trait Implementations
sourceimpl Ord for Class
impl Ord for Class
sourceimpl PartialOrd<Class> for Class
impl PartialOrd<Class> for Class
sourcefn partial_cmp(&self, other: &Class) -> Option<Ordering>
fn partial_cmp(&self, other: &Class) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl ProtoEnum for Class
impl ProtoEnum for Class
sourcefn proto_enum_type() -> &'static str
fn proto_enum_type() -> &'static str
Returns the protobuf type name for enums of this type.
sourcefn proto_enum_default_variant() -> &'static str
fn proto_enum_default_variant() -> &'static str
Returns the name of the default variant of an enum.
sourcefn proto_enum_variant(&self) -> &'static str
fn proto_enum_variant(&self) -> &'static str
Returns the name of the selected variant of an enum.
sourcefn proto_enum_from_i32(x: i32) -> Option<Self>
fn proto_enum_from_i32(x: i32) -> Option<Self>
Returns the enumeration entry corresponding to the given integer value, if any. Read more
impl Copy for Class
impl Eq for Class
impl StructuralEq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> InputNode for T where
T: ProtoPrimitive,
impl<T> InputNode for T where
T: ProtoPrimitive,
sourcefn type_to_node() -> Node
fn type_to_node() -> Node
Creates an empty output node for a protobuf datum of this type. Read more
sourcefn data_to_node(&self) -> Node
fn data_to_node(&self) -> Node
Creates an empty output node for a protobuf datum with this value.
sourcefn oneof_variant(&self) -> Option<&'static str>
fn oneof_variant(&self) -> Option<&'static str>
Returns the name of the selected variant of a oneof field, if this is a rust enum used to represent a oneof field. Read more
sourcefn parse_unknown(&self, _context: &mut Context<'_>) -> bool
fn parse_unknown(&self, _context: &mut Context<'_>) -> bool
Complete the subtrees of this datum in output that have not already been parsed using UnknownField nodes. Returns whether any such nodes were added. Read more
sourceimpl<T> ProtoPrimitive for T where
T: ProtoEnum,
impl<T> ProtoPrimitive for T where
T: ProtoEnum,
sourcefn proto_primitive_type() -> &'static str
fn proto_primitive_type() -> &'static str
Returns the protobuf type name for primitives of this type.
sourcefn proto_primitive_default() -> PrimitiveData
fn proto_primitive_default() -> PrimitiveData
Returns the protobuf-specified default value for this primitive data type. Read more
sourcefn proto_primitive_data(&self) -> PrimitiveData
fn proto_primitive_data(&self) -> PrimitiveData
Returns the actual value for this primitive data type as a ProtoPrimitiveData variant. Read more
sourcefn proto_primitive_is_default(&self) -> bool
fn proto_primitive_is_default(&self) -> bool
Returns whether this is the default value of the primitive.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more