pub enum CustodyState {
Free,
Detained,
Hostage,
Captive,
Hiding,
Exile,
}Expand description
Whether a person is free to act. Absent availability means
CustodyState::Free.
Variants§
Trait Implementations§
Source§impl Clone for CustodyState
impl Clone for CustodyState
Source§fn clone(&self) -> CustodyState
fn clone(&self) -> CustodyState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CustodyState
Source§impl Debug for CustodyState
impl Debug for CustodyState
Source§impl Default for CustodyState
impl Default for CustodyState
Source§fn default() -> CustodyState
fn default() -> CustodyState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustodyState
impl<'de> Deserialize<'de> for CustodyState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustodyState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustodyState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CustodyState
Source§impl Hash for CustodyState
impl Hash for CustodyState
Source§impl Ord for CustodyState
impl Ord for CustodyState
Source§fn cmp(&self, other: &CustodyState) -> Ordering
fn cmp(&self, other: &CustodyState) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CustodyState
impl PartialEq for CustodyState
Source§impl PartialOrd for CustodyState
impl PartialOrd for CustodyState
Source§impl Serialize for CustodyState
impl Serialize for CustodyState
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 StructuralPartialEq for CustodyState
Auto Trait Implementations§
impl Freeze for CustodyState
impl RefUnwindSafe for CustodyState
impl Send for CustodyState
impl Sync for CustodyState
impl Unpin for CustodyState
impl UnsafeUnpin for CustodyState
impl UnwindSafe for CustodyState
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