#[repr(i32)]pub enum AddLayerErrorCode {
AddLayerErrOk = 0,
AddLayerErrGeneric = 1,
AddLayerErrNoSpace = 2,
}Variants§
Implementations§
Source§impl AddLayerErrorCode
impl AddLayerErrorCode
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 Clone for AddLayerErrorCode
impl Clone for AddLayerErrorCode
Source§fn clone(&self) -> AddLayerErrorCode
fn clone(&self) -> AddLayerErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddLayerErrorCode
impl Debug for AddLayerErrorCode
Source§impl Default for AddLayerErrorCode
impl Default for AddLayerErrorCode
Source§fn default() -> AddLayerErrorCode
fn default() -> AddLayerErrorCode
Returns the “default value” for a type. Read more
Source§impl From<AddLayerErrorCode> for i32
impl From<AddLayerErrorCode> for i32
Source§fn from(value: AddLayerErrorCode) -> i32
fn from(value: AddLayerErrorCode) -> i32
Converts to this type from the input type.
Source§impl Hash for AddLayerErrorCode
impl Hash for AddLayerErrorCode
Source§impl Ord for AddLayerErrorCode
impl Ord for AddLayerErrorCode
Source§fn cmp(&self, other: &AddLayerErrorCode) -> Ordering
fn cmp(&self, other: &AddLayerErrorCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AddLayerErrorCode
impl PartialEq for AddLayerErrorCode
Source§impl PartialOrd for AddLayerErrorCode
impl PartialOrd for AddLayerErrorCode
Source§impl TryFrom<i32> for AddLayerErrorCode
impl TryFrom<i32> for AddLayerErrorCode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<AddLayerErrorCode, UnknownEnumValue>
fn try_from(value: i32) -> Result<AddLayerErrorCode, UnknownEnumValue>
Performs the conversion.
impl Copy for AddLayerErrorCode
impl Eq for AddLayerErrorCode
impl StructuralPartialEq for AddLayerErrorCode
Auto Trait Implementations§
impl Freeze for AddLayerErrorCode
impl RefUnwindSafe for AddLayerErrorCode
impl Send for AddLayerErrorCode
impl Sync for AddLayerErrorCode
impl Unpin for AddLayerErrorCode
impl UnsafeUnpin for AddLayerErrorCode
impl UnwindSafe for AddLayerErrorCode
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