#[repr(i32)]pub enum RemoveLayerErrorCode {
RemoveLayerErrOk = 0,
RemoveLayerErrGeneric = 1,
RemoveLayerErrInvalidIndex = 2,
}Variants§
Implementations§
Source§impl RemoveLayerErrorCode
impl RemoveLayerErrorCode
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of RemoveLayerErrorCode.
Sourcepub fn from_i32(value: i32) -> Option<RemoveLayerErrorCode>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<RemoveLayerErrorCode>
Converts an i32 to a RemoveLayerErrorCode, or None if value is not a valid variant.
Source§impl RemoveLayerErrorCode
impl RemoveLayerErrorCode
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 RemoveLayerErrorCode
impl Clone for RemoveLayerErrorCode
Source§fn clone(&self) -> RemoveLayerErrorCode
fn clone(&self) -> RemoveLayerErrorCode
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 RemoveLayerErrorCode
impl Debug for RemoveLayerErrorCode
Source§impl Default for RemoveLayerErrorCode
impl Default for RemoveLayerErrorCode
Source§fn default() -> RemoveLayerErrorCode
fn default() -> RemoveLayerErrorCode
Returns the “default value” for a type. Read more
Source§impl From<RemoveLayerErrorCode> for i32
impl From<RemoveLayerErrorCode> for i32
Source§fn from(value: RemoveLayerErrorCode) -> i32
fn from(value: RemoveLayerErrorCode) -> i32
Converts to this type from the input type.
Source§impl Hash for RemoveLayerErrorCode
impl Hash for RemoveLayerErrorCode
Source§impl Ord for RemoveLayerErrorCode
impl Ord for RemoveLayerErrorCode
Source§fn cmp(&self, other: &RemoveLayerErrorCode) -> Ordering
fn cmp(&self, other: &RemoveLayerErrorCode) -> 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 RemoveLayerErrorCode
impl PartialEq for RemoveLayerErrorCode
Source§impl PartialOrd for RemoveLayerErrorCode
impl PartialOrd for RemoveLayerErrorCode
Source§impl TryFrom<i32> for RemoveLayerErrorCode
impl TryFrom<i32> for RemoveLayerErrorCode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<RemoveLayerErrorCode, UnknownEnumValue>
fn try_from(value: i32) -> Result<RemoveLayerErrorCode, UnknownEnumValue>
Performs the conversion.
impl Copy for RemoveLayerErrorCode
impl Eq for RemoveLayerErrorCode
impl StructuralPartialEq for RemoveLayerErrorCode
Auto Trait Implementations§
impl Freeze for RemoveLayerErrorCode
impl RefUnwindSafe for RemoveLayerErrorCode
impl Send for RemoveLayerErrorCode
impl Sync for RemoveLayerErrorCode
impl Unpin for RemoveLayerErrorCode
impl UnsafeUnpin for RemoveLayerErrorCode
impl UnwindSafe for RemoveLayerErrorCode
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