#[repr(u8)]pub enum ReplaceIfPresentFlag {
DoNotReplace = 0,
Replace = 1,
Other(u8),
}Variants§
Trait Implementations§
Source§impl Clone for ReplaceIfPresentFlag
impl Clone for ReplaceIfPresentFlag
Source§fn clone(&self) -> ReplaceIfPresentFlag
fn clone(&self) -> ReplaceIfPresentFlag
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplaceIfPresentFlag
impl Debug for ReplaceIfPresentFlag
Source§impl<'a> Decode<'a> for ReplaceIfPresentFlag
impl<'a> Decode<'a> for ReplaceIfPresentFlag
Source§fn decode(src: &'a [u8]) -> Result<(ReplaceIfPresentFlag, usize), DecodeError>
fn decode(src: &'a [u8]) -> Result<(ReplaceIfPresentFlag, usize), DecodeError>
Decode a value from a slice.
Source§impl Decode for ReplaceIfPresentFlag
Available on crate feature alloc only.
impl Decode for ReplaceIfPresentFlag
Available on crate feature
alloc only.Source§fn decode(
src: &mut BytesMut,
) -> Result<(ReplaceIfPresentFlag, usize), DecodeError>
fn decode( src: &mut BytesMut, ) -> Result<(ReplaceIfPresentFlag, usize), DecodeError>
Decode a value from a buffer.
Source§impl Default for ReplaceIfPresentFlag
impl Default for ReplaceIfPresentFlag
Source§fn default() -> ReplaceIfPresentFlag
fn default() -> ReplaceIfPresentFlag
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReplaceIfPresentFlag
impl<'de> Deserialize<'de> for ReplaceIfPresentFlag
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReplaceIfPresentFlag, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReplaceIfPresentFlag, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for ReplaceIfPresentFlag
impl Encode for ReplaceIfPresentFlag
Source§impl Encode for ReplaceIfPresentFlag
Available on crate feature alloc only.
impl Encode for ReplaceIfPresentFlag
Available on crate feature
alloc only.Source§impl From<u8> for ReplaceIfPresentFlag
impl From<u8> for ReplaceIfPresentFlag
Source§fn from(value: u8) -> ReplaceIfPresentFlag
fn from(value: u8) -> ReplaceIfPresentFlag
Converts to this type from the input type.
Source§impl Hash for ReplaceIfPresentFlag
impl Hash for ReplaceIfPresentFlag
Source§impl Ord for ReplaceIfPresentFlag
impl Ord for ReplaceIfPresentFlag
Source§impl PartialEq for ReplaceIfPresentFlag
impl PartialEq for ReplaceIfPresentFlag
Source§impl PartialOrd for ReplaceIfPresentFlag
impl PartialOrd for ReplaceIfPresentFlag
Source§impl Serialize for ReplaceIfPresentFlag
impl Serialize for ReplaceIfPresentFlag
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ReplaceIfPresentFlag
impl Eq for ReplaceIfPresentFlag
impl StructuralPartialEq for ReplaceIfPresentFlag
Auto Trait Implementations§
impl Freeze for ReplaceIfPresentFlag
impl RefUnwindSafe for ReplaceIfPresentFlag
impl Send for ReplaceIfPresentFlag
impl Sync for ReplaceIfPresentFlag
impl Unpin for ReplaceIfPresentFlag
impl UnwindSafe for ReplaceIfPresentFlag
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)