pub struct ConstU32<const CONST: u32>(/* private fields */);Implementations§
Trait Implementations§
Source§impl<'de, const CONST: u32> Deserialize<'de> for ConstU32<CONST>
impl<'de, const CONST: u32> Deserialize<'de> for ConstU32<CONST>
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ConstU32<CONST>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ConstU32<CONST>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const CONST: u32> Ord for ConstU32<CONST>
impl<const CONST: u32> Ord for ConstU32<CONST>
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<const CONST: u32> PartialOrd for ConstU32<CONST>
impl<const CONST: u32> PartialOrd for ConstU32<CONST>
Source§impl<const CONST: u32> Serialize for ConstU32<CONST>
impl<const CONST: u32> Serialize for ConstU32<CONST>
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
Source§impl<const CONST: u32> StrictDecode for ConstU32<CONST>
impl<const CONST: u32> StrictDecode for ConstU32<CONST>
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<ConstU32<CONST>, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl<const CONST: u32> StrictEncode for ConstU32<CONST>
impl<const CONST: u32> StrictEncode for ConstU32<CONST>
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl<const CONST: u32> StrictTuple for ConstU32<CONST>
impl<const CONST: u32> StrictTuple for ConstU32<CONST>
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl<const CONST: u32> StrictType for ConstU32<CONST>
impl<const CONST: u32> StrictType for ConstU32<CONST>
const STRICT_LIB_NAME: &'static str = LIB_NAME_ULTRASONIC
fn strict_name() -> Option<TypeName>
impl<const CONST: u32> Eq for ConstU32<CONST>
impl<const CONST: u32> StrictProduct for ConstU32<CONST>
impl<const CONST: u32> StructuralPartialEq for ConstU32<CONST>
Auto Trait Implementations§
impl<const CONST: u32> Freeze for ConstU32<CONST>
impl<const CONST: u32> RefUnwindSafe for ConstU32<CONST>
impl<const CONST: u32> Send for ConstU32<CONST>
impl<const CONST: u32> Sync for ConstU32<CONST>
impl<const CONST: u32> Unpin for ConstU32<CONST>
impl<const CONST: u32> UnwindSafe for ConstU32<CONST>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.