#[repr(i32)]pub enum Operation {
OpUnspecified = 0,
OpCreate = 1,
OpDestroy = 2,
OpBind = 3,
OpDestroyBound = 4,
OpAnnotations = 5,
}
Variants§
OpUnspecified = 0
OpCreate = 1
alloc, create
OpDestroy = 2
free, destroy(non-bound)
OpBind = 3
bind buffer and image
OpDestroyBound = 4
destroy (bound)
OpAnnotations = 5
only annotations
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for Operation
impl Ord for Operation
Source§impl PartialOrd for Operation
impl PartialOrd for Operation
impl Copy for Operation
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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