#[repr(i32)]pub enum Semantic {
NONE = 0,
SET = 1,
ALIAS = 2,
}Expand description
Represents the identified object’s effect on the element in the original .proto file.
Variants§
NONE = 0
There is no effect or the effect is indescribable.
SET = 1
The element is set or otherwise mutated.
ALIAS = 2
An alias to the element is returned.
Implementations§
Source§impl Semantic
impl Semantic
Sourcepub const None: Self = Self::NONE
pub const None: Self = Self::NONE
Idiomatic alias for Self::NONE; Debug prints the variant name.
Sourcepub const Alias: Self = Self::ALIAS
pub const Alias: Self = Self::ALIAS
Idiomatic alias for Self::ALIAS; Debug prints the variant name.
Trait Implementations§
impl Copy for Semantic
Source§impl Enumeration for Semantic
impl Enumeration for Semantic
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for Semantic
impl StructuralPartialEq for Semantic
Auto Trait Implementations§
impl Freeze for Semantic
impl RefUnwindSafe for Semantic
impl Send for Semantic
impl Sync for Semantic
impl Unpin for Semantic
impl UnsafeUnpin for Semantic
impl UnwindSafe for Semantic
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more