#[repr(transparent)]pub struct Degrees(pub Nat16);Tuple Fields§
§0: Nat16Trait Implementations§
Source§impl AddAssign<u16> for Degrees
impl AddAssign<u16> for Degrees
Source§fn add_assign(&mut self, other: Nat16)
fn add_assign(&mut self, other: Nat16)
Performs the
+= operation. Read moreSource§impl AddAssign for Degrees
impl AddAssign for Degrees
Source§fn add_assign(&mut self, other: Degrees)
fn add_assign(&mut self, other: Degrees)
Performs the
+= operation. Read moreSource§impl CandidType for Degrees
impl CandidType for Degrees
Source§impl<'de> Deserialize<'de> for Degrees
impl<'de> Deserialize<'de> for Degrees
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DivAssign<u16> for Degrees
impl DivAssign<u16> for Degrees
Source§fn div_assign(&mut self, other: Nat16)
fn div_assign(&mut self, other: Nat16)
Performs the
/= operation. Read moreSource§impl DivAssign for Degrees
impl DivAssign for Degrees
Source§fn div_assign(&mut self, other: Degrees)
fn div_assign(&mut self, other: Degrees)
Performs the
/= operation. Read moreSource§impl FieldTypeMeta for Degrees
impl FieldTypeMeta for Degrees
Source§const KIND: FieldKind = Self::__KIND
const KIND: FieldKind = Self::__KIND
Semantic field kind used for runtime planning and validation.
Source§const STORAGE_DECODE: FieldStorageDecode = Self::__STORAGE_DECODE
const STORAGE_DECODE: FieldStorageDecode = Self::__STORAGE_DECODE
Persisted decode contract used by row and payload decoding.
Source§const NESTED_FIELDS: &'static [FieldModel]
const NESTED_FIELDS: &'static [FieldModel]
Known nested fields for generated structured records.
Source§impl MulAssign<u16> for Degrees
impl MulAssign<u16> for Degrees
Source§fn mul_assign(&mut self, other: Nat16)
fn mul_assign(&mut self, other: Nat16)
Performs the
*= operation. Read moreSource§impl MulAssign for Degrees
impl MulAssign for Degrees
Source§fn mul_assign(&mut self, other: Degrees)
fn mul_assign(&mut self, other: Degrees)
Performs the
*= operation. Read moreSource§impl NumericValue for Degrees
impl NumericValue for Degrees
Source§fn try_to_decimal(&self) -> Option<Decimal>
fn try_to_decimal(&self) -> Option<Decimal>
Convert this value into Decimal for generic numeric handling.
Source§fn try_from_decimal(value: Decimal) -> Option<Self>
fn try_from_decimal(value: Decimal) -> Option<Self>
Rebuild the value from Decimal after generic numeric handling.
Source§impl Ord for Degrees
impl Ord for Degrees
Source§impl PartialOrd<Degrees> for Nat16
impl PartialOrd<Degrees> for Nat16
Source§impl PartialOrd<u16> for Degrees
impl PartialOrd<u16> for Degrees
Source§impl PartialOrd for Degrees
impl PartialOrd for Degrees
Source§impl PersistedStructuredFieldCodec for Degrees
impl PersistedStructuredFieldCodec for Degrees
Source§fn encode_persisted_structured_payload(&self) -> Result<Vec<u8>, InternalError>
fn encode_persisted_structured_payload(&self) -> Result<Vec<u8>, InternalError>
Encode this typed structured field into persisted structured payload bytes.
Source§fn decode_persisted_structured_payload(
bytes: &[u8],
) -> Result<Self, InternalError>
fn decode_persisted_structured_payload( bytes: &[u8], ) -> Result<Self, InternalError>
Decode this typed structured field from persisted structured payload bytes.
Source§impl RuntimeValueDecode for Degrees
impl RuntimeValueDecode for Degrees
fn from_value(value: &Value) -> Option<Self>
Source§impl RuntimeValueMeta for Degrees
impl RuntimeValueMeta for Degrees
fn kind() -> RuntimeValueKind
Source§impl SanitizeAuto for Degrees
impl SanitizeAuto for Degrees
fn sanitize_self(&mut self, _ctx: &mut dyn VisitorContext)
Source§impl SanitizeCustom for Degrees
impl SanitizeCustom for Degrees
fn sanitize_custom(&mut self, _ctx: &mut dyn VisitorContext)
Source§impl SubAssign<u16> for Degrees
impl SubAssign<u16> for Degrees
Source§fn sub_assign(&mut self, other: Nat16)
fn sub_assign(&mut self, other: Nat16)
Performs the
-= operation. Read moreSource§impl SubAssign for Degrees
impl SubAssign for Degrees
Source§fn sub_assign(&mut self, other: Degrees)
fn sub_assign(&mut self, other: Degrees)
Performs the
-= operation. Read moreSource§impl ValidateAuto for Degrees
impl ValidateAuto for Degrees
fn validate_self(&self, ctx: &mut dyn VisitorContext)
Source§impl ValidateCustom for Degrees
impl ValidateCustom for Degrees
fn validate_custom(&self, _ctx: &mut dyn VisitorContext)
Source§impl Visitable for Degrees
impl Visitable for Degrees
fn drive(&self, visitor: &mut dyn VisitorCore)
fn drive_mut(&mut self, visitor: &mut dyn VisitorMutCore)
impl Copy for Degrees
impl Eq for Degrees
impl StructuralPartialEq for Degrees
Auto Trait Implementations§
impl Freeze for Degrees
impl RefUnwindSafe for Degrees
impl Send for Degrees
impl Sync for Degrees
impl Unpin for Degrees
impl UnsafeUnpin for Degrees
impl UnwindSafe for Degrees
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<T> KeyValueCodec for Twhere
T: RuntimeValueDecode + RuntimeValueEncode,
impl<T> KeyValueCodec for Twhere
T: RuntimeValueDecode + RuntimeValueEncode,
fn to_key_value(&self) -> Value
fn from_key_value(value: &Value) -> Option<T>
Source§impl<T> PersistedFieldMetaCodec for T
impl<T> PersistedFieldMetaCodec for T
Source§fn encode_persisted_slot_payload_by_meta(
&self,
field_name: &'static str,
) -> Result<Vec<u8>, InternalError>
fn encode_persisted_slot_payload_by_meta( &self, field_name: &'static str, ) -> Result<Vec<u8>, InternalError>
Encode one non-optional field payload through the type’s own
FieldTypeMeta storage contract.Source§fn decode_persisted_slot_payload_by_meta(
bytes: &[u8],
field_name: &'static str,
) -> Result<T, InternalError>
fn decode_persisted_slot_payload_by_meta( bytes: &[u8], field_name: &'static str, ) -> Result<T, InternalError>
Decode one non-optional field payload through the type’s own
FieldTypeMeta storage contract.Source§fn encode_persisted_option_slot_payload_by_meta(
value: &Option<T>,
field_name: &'static str,
) -> Result<Vec<u8>, InternalError>
fn encode_persisted_option_slot_payload_by_meta( value: &Option<T>, field_name: &'static str, ) -> Result<Vec<u8>, InternalError>
Encode one optional field payload through the inner type’s own
FieldTypeMeta storage contract.Source§fn decode_persisted_option_slot_payload_by_meta(
bytes: &[u8],
field_name: &'static str,
) -> Result<Option<T>, InternalError>
fn decode_persisted_option_slot_payload_by_meta( bytes: &[u8], field_name: &'static str, ) -> Result<Option<T>, InternalError>
Decode one optional field payload through the inner type’s own
FieldTypeMeta storage contract.