Enum scsys_actors::states::kinds::binary::BinaryState

source ·
#[repr(u8)]
pub enum BinaryState { Invalid = 0, Valid = 1, }

Variants§

§

Invalid = 0

§

Valid = 1

Implementations§

source§

impl BinaryState

source

pub const fn is_invalid(&self) -> bool

Returns true if the enum is BinaryState::Invalid otherwise false

source

pub const fn is_valid(&self) -> bool

Returns true if the enum is BinaryState::Valid otherwise false

source§

impl BinaryState

source

pub fn new(state: u8) -> Self

source

pub fn invalid() -> Self

a functional variant constructor for Invalid

source

pub fn valid() -> Self

a functional variant constructor for Valid

source

pub fn update(&mut self, state: Self)

Trait Implementations§

source§

impl<'a> Add<&'a BinaryState> for BinaryState

§

type Output = BinaryState

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'a BinaryState) -> Self::Output

Performs the + operation. Read more
source§

impl<'a> Add<BinaryState> for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the + operator.
source§

fn add(self, rhs: BinaryState) -> Self::Output

Performs the + operation. Read more
source§

impl<'a, T> Add<T> for &'a BinaryState
where u8: Add<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the + operator.
source§

fn add(self, rhs: T) -> Self::Output

Performs the + operation. Read more
source§

impl<T> Add<T> for BinaryState
where u8: Add<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the + operator.
source§

fn add(self, rhs: T) -> Self::Output

Performs the + operation. Read more
source§

impl<'a> Add for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'a BinaryState) -> Self::Output

Performs the + operation. Read more
source§

impl Add for BinaryState

§

type Output = BinaryState

The resulting type after applying the + operator.
source§

fn add(self, rhs: BinaryState) -> Self::Output

Performs the + operation. Read more
source§

impl<'a> AddAssign<&'a BinaryState> for BinaryState

source§

fn add_assign(&mut self, rhs: &'a BinaryState)

Performs the += operation. Read more
source§

impl AddAssign for BinaryState

source§

fn add_assign(&mut self, rhs: BinaryState)

Performs the += operation. Read more
source§

impl AsRef<str> for BinaryState

source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<'a> BitAnd<&'a BinaryState> for BinaryState

§

type Output = BinaryState

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: &'a BinaryState) -> Self::Output

Performs the & operation. Read more
source§

impl<'a> BitAnd<BinaryState> for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: BinaryState) -> Self::Output

Performs the & operation. Read more
source§

impl<'a, T> BitAnd<T> for &'a BinaryState
where u8: BitAnd<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: T) -> Self::Output

Performs the & operation. Read more
source§

impl<T> BitAnd<T> for BinaryState
where u8: BitAnd<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: T) -> Self::Output

Performs the & operation. Read more
source§

impl<'a> BitAnd for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: &'a BinaryState) -> Self::Output

Performs the & operation. Read more
source§

impl BitAnd for BinaryState

§

type Output = BinaryState

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: BinaryState) -> Self::Output

Performs the & operation. Read more
source§

impl<'a> BitAndAssign<&'a BinaryState> for BinaryState

source§

fn bitand_assign(&mut self, rhs: &'a BinaryState)

Performs the &= operation. Read more
source§

impl BitAndAssign for BinaryState

source§

fn bitand_assign(&mut self, rhs: BinaryState)

Performs the &= operation. Read more
source§

impl<'a> BitOr<&'a BinaryState> for BinaryState

§

type Output = BinaryState

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: &'a BinaryState) -> Self::Output

Performs the | operation. Read more
source§

impl<'a> BitOr<BinaryState> for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: BinaryState) -> Self::Output

Performs the | operation. Read more
source§

impl<'a, T> BitOr<T> for &'a BinaryState
where u8: BitOr<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: T) -> Self::Output

Performs the | operation. Read more
source§

impl<T> BitOr<T> for BinaryState
where u8: BitOr<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: T) -> Self::Output

Performs the | operation. Read more
source§

impl<'a> BitOr for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: &'a BinaryState) -> Self::Output

Performs the | operation. Read more
source§

impl BitOr for BinaryState

§

type Output = BinaryState

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: BinaryState) -> Self::Output

Performs the | operation. Read more
source§

impl<'a> BitOrAssign<&'a BinaryState> for BinaryState

source§

fn bitor_assign(&mut self, rhs: &'a BinaryState)

Performs the |= operation. Read more
source§

impl BitOrAssign for BinaryState

source§

fn bitor_assign(&mut self, rhs: BinaryState)

Performs the |= operation. Read more
source§

impl<'a> BitXor<&'a BinaryState> for BinaryState

§

type Output = BinaryState

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: &'a BinaryState) -> Self::Output

Performs the ^ operation. Read more
source§

impl<'a> BitXor<BinaryState> for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: BinaryState) -> Self::Output

Performs the ^ operation. Read more
source§

impl<'a, T> BitXor<T> for &'a BinaryState
where u8: BitXor<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: T) -> Self::Output

Performs the ^ operation. Read more
source§

impl<T> BitXor<T> for BinaryState
where u8: BitXor<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: T) -> Self::Output

Performs the ^ operation. Read more
source§

impl<'a> BitXor for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: &'a BinaryState) -> Self::Output

Performs the ^ operation. Read more
source§

impl BitXor for BinaryState

§

type Output = BinaryState

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: BinaryState) -> Self::Output

Performs the ^ operation. Read more
source§

impl<'a> BitXorAssign<&'a BinaryState> for BinaryState

source§

fn bitxor_assign(&mut self, rhs: &'a BinaryState)

Performs the ^= operation. Read more
source§

impl BitXorAssign for BinaryState

source§

fn bitxor_assign(&mut self, rhs: BinaryState)

Performs the ^= operation. Read more
source§

impl Clone for BinaryState

source§

fn clone(&self) -> BinaryState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BinaryState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BinaryState

source§

fn default() -> BinaryState

Returns the “default value” for a type. Read more
source§

impl Display for BinaryState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a> Div<&'a BinaryState> for BinaryState

§

type Output = BinaryState

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'a BinaryState) -> Self::Output

Performs the / operation. Read more
source§

impl<'a> Div<BinaryState> for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the / operator.
source§

fn div(self, rhs: BinaryState) -> Self::Output

Performs the / operation. Read more
source§

impl<'a, T> Div<T> for &'a BinaryState
where u8: Div<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the / operator.
source§

fn div(self, rhs: T) -> Self::Output

Performs the / operation. Read more
source§

impl<T> Div<T> for BinaryState
where u8: Div<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the / operator.
source§

fn div(self, rhs: T) -> Self::Output

Performs the / operation. Read more
source§

impl<'a> Div for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'a BinaryState) -> Self::Output

Performs the / operation. Read more
source§

impl Div for BinaryState

§

type Output = BinaryState

The resulting type after applying the / operator.
source§

fn div(self, rhs: BinaryState) -> Self::Output

Performs the / operation. Read more
source§

impl<'a> DivAssign<&'a BinaryState> for BinaryState

source§

fn div_assign(&mut self, rhs: &'a BinaryState)

Performs the /= operation. Read more
source§

impl DivAssign for BinaryState

source§

fn div_assign(&mut self, rhs: BinaryState)

Performs the /= operation. Read more
source§

impl EnumCount for BinaryState

source§

const COUNT: usize = 2usize

source§

impl From<BinaryState> for i128

source§

fn from(d: BinaryState) -> Self

Converts to this type from the input type.
source§

impl From<BinaryState> for i16

source§

fn from(d: BinaryState) -> Self

Converts to this type from the input type.
source§

impl From<BinaryState> for i32

source§

fn from(d: BinaryState) -> Self

Converts to this type from the input type.
source§

impl From<BinaryState> for i64

source§

fn from(d: BinaryState) -> Self

Converts to this type from the input type.
source§

impl From<BinaryState> for i8

source§

fn from(d: BinaryState) -> Self

Converts to this type from the input type.
source§

impl From<BinaryState> for isize

source§

fn from(d: BinaryState) -> Self

Converts to this type from the input type.
source§

impl From<BinaryState> for u128

source§

fn from(d: BinaryState) -> Self

Converts to this type from the input type.
source§

impl From<BinaryState> for u16

source§

fn from(d: BinaryState) -> Self

Converts to this type from the input type.
source§

impl From<BinaryState> for u32

source§

fn from(d: BinaryState) -> Self

Converts to this type from the input type.
source§

impl From<BinaryState> for u64

source§

fn from(d: BinaryState) -> Self

Converts to this type from the input type.
source§

impl From<BinaryState> for u8

source§

fn from(d: BinaryState) -> Self

Converts to this type from the input type.
source§

impl From<BinaryState> for usize

source§

fn from(d: BinaryState) -> Self

Converts to this type from the input type.
source§

impl From<i128> for BinaryState

source§

fn from(d: i128) -> Self

Converts to this type from the input type.
source§

impl From<i16> for BinaryState

source§

fn from(d: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for BinaryState

source§

fn from(d: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for BinaryState

source§

fn from(d: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for BinaryState

source§

fn from(d: i8) -> Self

Converts to this type from the input type.
source§

impl From<isize> for BinaryState

source§

fn from(d: isize) -> Self

Converts to this type from the input type.
source§

impl From<u128> for BinaryState

source§

fn from(d: u128) -> Self

Converts to this type from the input type.
source§

impl From<u16> for BinaryState

source§

fn from(d: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for BinaryState

source§

fn from(d: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for BinaryState

source§

fn from(d: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for BinaryState

source§

fn from(d: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for BinaryState

source§

fn from(d: usize) -> Self

Converts to this type from the input type.
source§

impl FromStr for BinaryState

§

type Err = ParseError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<BinaryState, <Self as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for BinaryState

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl IntoEnumIterator for BinaryState

source§

impl<'a> Mul<&'a BinaryState> for BinaryState

§

type Output = BinaryState

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'a BinaryState) -> Self::Output

Performs the * operation. Read more
source§

impl<'a> Mul<BinaryState> for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BinaryState) -> Self::Output

Performs the * operation. Read more
source§

impl<'a, T> Mul<T> for &'a BinaryState
where u8: Mul<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the * operator.
source§

fn mul(self, rhs: T) -> Self::Output

Performs the * operation. Read more
source§

impl<T> Mul<T> for BinaryState
where u8: Mul<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the * operator.
source§

fn mul(self, rhs: T) -> Self::Output

Performs the * operation. Read more
source§

impl<'a> Mul for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'a BinaryState) -> Self::Output

Performs the * operation. Read more
source§

impl Mul for BinaryState

§

type Output = BinaryState

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BinaryState) -> Self::Output

Performs the * operation. Read more
source§

impl<'a> MulAssign<&'a BinaryState> for BinaryState

source§

fn mul_assign(&mut self, rhs: &'a BinaryState)

Performs the *= operation. Read more
source§

impl MulAssign for BinaryState

source§

fn mul_assign(&mut self, rhs: BinaryState)

Performs the *= operation. Read more
source§

impl Not for BinaryState

§

type Output = BinaryState

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl Ord for BinaryState

source§

fn cmp(&self, other: &BinaryState) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for BinaryState

source§

fn eq(&self, other: &BinaryState) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for BinaryState

source§

fn partial_cmp(&self, other: &BinaryState) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<'a> Rem<&'a BinaryState> for BinaryState

§

type Output = BinaryState

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &'a BinaryState) -> Self::Output

Performs the % operation. Read more
source§

impl<'a> Rem<BinaryState> for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the % operator.
source§

fn rem(self, rhs: BinaryState) -> Self::Output

Performs the % operation. Read more
source§

impl<'a, T> Rem<T> for &'a BinaryState
where u8: Rem<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the % operator.
source§

fn rem(self, rhs: T) -> Self::Output

Performs the % operation. Read more
source§

impl<T> Rem<T> for BinaryState
where u8: Rem<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the % operator.
source§

fn rem(self, rhs: T) -> Self::Output

Performs the % operation. Read more
source§

impl<'a> Rem for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &'a BinaryState) -> Self::Output

Performs the % operation. Read more
source§

impl Rem for BinaryState

§

type Output = BinaryState

The resulting type after applying the % operator.
source§

fn rem(self, rhs: BinaryState) -> Self::Output

Performs the % operation. Read more
source§

impl<'a> RemAssign<&'a BinaryState> for BinaryState

source§

fn rem_assign(&mut self, rhs: &'a BinaryState)

Performs the %= operation. Read more
source§

impl RemAssign for BinaryState

source§

fn rem_assign(&mut self, rhs: BinaryState)

Performs the %= operation. Read more
source§

impl<'a> Shl<&'a BinaryState> for BinaryState

§

type Output = BinaryState

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &'a BinaryState) -> Self::Output

Performs the << operation. Read more
source§

impl<'a> Shl<BinaryState> for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the << operator.
source§

fn shl(self, rhs: BinaryState) -> Self::Output

Performs the << operation. Read more
source§

impl<'a, T> Shl<T> for &'a BinaryState
where u8: Shl<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the << operator.
source§

fn shl(self, rhs: T) -> Self::Output

Performs the << operation. Read more
source§

impl<T> Shl<T> for BinaryState
where u8: Shl<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the << operator.
source§

fn shl(self, rhs: T) -> Self::Output

Performs the << operation. Read more
source§

impl<'a> Shl for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &'a BinaryState) -> Self::Output

Performs the << operation. Read more
source§

impl Shl for BinaryState

§

type Output = BinaryState

The resulting type after applying the << operator.
source§

fn shl(self, rhs: BinaryState) -> Self::Output

Performs the << operation. Read more
source§

impl<'a> ShlAssign<&'a BinaryState> for BinaryState

source§

fn shl_assign(&mut self, rhs: &'a BinaryState)

Performs the <<= operation. Read more
source§

impl ShlAssign for BinaryState

source§

fn shl_assign(&mut self, rhs: BinaryState)

Performs the <<= operation. Read more
source§

impl<'a> Shr<&'a BinaryState> for BinaryState

§

type Output = BinaryState

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &'a BinaryState) -> Self::Output

Performs the >> operation. Read more
source§

impl<'a> Shr<BinaryState> for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: BinaryState) -> Self::Output

Performs the >> operation. Read more
source§

impl<'a, T> Shr<T> for &'a BinaryState
where u8: Shr<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: T) -> Self::Output

Performs the >> operation. Read more
source§

impl<T> Shr<T> for BinaryState
where u8: Shr<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: T) -> Self::Output

Performs the >> operation. Read more
source§

impl<'a> Shr for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &'a BinaryState) -> Self::Output

Performs the >> operation. Read more
source§

impl Shr for BinaryState

§

type Output = BinaryState

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: BinaryState) -> Self::Output

Performs the >> operation. Read more
source§

impl<'a> ShrAssign<&'a BinaryState> for BinaryState

source§

fn shr_assign(&mut self, rhs: &'a BinaryState)

Performs the >>= operation. Read more
source§

impl ShrAssign for BinaryState

source§

fn shr_assign(&mut self, rhs: BinaryState)

Performs the >>= operation. Read more
source§

impl<'a> Sub<&'a BinaryState> for BinaryState

§

type Output = BinaryState

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'a BinaryState) -> Self::Output

Performs the - operation. Read more
source§

impl<'a> Sub<BinaryState> for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BinaryState) -> Self::Output

Performs the - operation. Read more
source§

impl<'a, T> Sub<T> for &'a BinaryState
where u8: Sub<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the - operator.
source§

fn sub(self, rhs: T) -> Self::Output

Performs the - operation. Read more
source§

impl<T> Sub<T> for BinaryState
where u8: Sub<T, Output = u8>,

§

type Output = BinaryState

The resulting type after applying the - operator.
source§

fn sub(self, rhs: T) -> Self::Output

Performs the - operation. Read more
source§

impl<'a> Sub for &'a BinaryState

§

type Output = BinaryState

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'a BinaryState) -> Self::Output

Performs the - operation. Read more
source§

impl Sub for BinaryState

§

type Output = BinaryState

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BinaryState) -> Self::Output

Performs the - operation. Read more
source§

impl<'a> SubAssign<&'a BinaryState> for BinaryState

source§

fn sub_assign(&mut self, rhs: &'a BinaryState)

Performs the -= operation. Read more
source§

impl SubAssign for BinaryState

source§

fn sub_assign(&mut self, rhs: BinaryState)

Performs the -= operation. Read more
source§

impl TryFrom<&str> for BinaryState

§

type Error = ParseError

The type returned in the event of a conversion error.
source§

fn try_from(s: &str) -> Result<BinaryState, <Self as TryFrom<&str>>::Error>

Performs the conversion.
source§

impl VariantNames for BinaryState

source§

const VARIANTS: &'static [&'static str] = _

Names of the variants of this enum
source§

impl Copy for BinaryState

source§

impl Eq for BinaryState

source§

impl StateKind for BinaryState

source§

impl StructuralPartialEq for BinaryState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<K, S> Id<K> for S
where S: Borrow<K>, K: Identifier,

source§

fn get(&self) -> &K

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Q, S> State<Q> for S
where Q: StateKind, S: Borrow<Q>,

§

type State = S

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.