pub struct Int(/* private fields */);Expand description
Int
Implementations§
Trait Implementations§
Source§impl AddAssign for Int
impl AddAssign for Int
Source§fn add_assign(&mut self, __rhs: Int)
fn add_assign(&mut self, __rhs: Int)
Performs the
+= operation. Read moreSource§impl CandidType for Int
impl CandidType for Int
Source§impl<'de> Deserialize<'de> for Int
impl<'de> Deserialize<'de> for Int
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Int, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Int, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Filterable for Int
impl Filterable for Int
Source§impl Ord for Int
impl Ord for Int
Source§impl PartialOrd for Int
impl PartialOrd for Int
Source§impl SanitizeAuto for Int
impl SanitizeAuto for Int
fn sanitize_self(&mut self)
fn sanitize_children(&mut self)
fn sanitize_self_with(&mut self, _ctx: &SanitizeContext)
fn sanitize_children_with(&mut self, _ctx: &SanitizeContext)
Source§impl SanitizeCustom for Int
impl SanitizeCustom for Int
fn sanitize_custom(&mut self)
fn sanitize_custom_with(&mut self, _ctx: &SanitizeContext)
Source§impl Serialize for Int
impl Serialize for Int
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 Storable for Int
impl Storable for Int
Source§const BOUND: Bound = ::canic_memory::cdk::structures::storable::Bound::Unbounded
const BOUND: Bound = ::canic_memory::cdk::structures::storable::Bound::Unbounded
The size bounds of the type.
Source§fn to_bytes(&self) -> Cow<'_, [u8]>
fn to_bytes(&self) -> Cow<'_, [u8]>
Converts the element into a possibly borrowed byte slice. Read more
Source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes, but checks that bytes conform to declared bounds.Source§fn into_bytes_checked(self) -> Vec<u8> ⓘwhere
Self: Sized,
fn into_bytes_checked(self) -> Vec<u8> ⓘwhere
Self: Sized,
Like
into_bytes, but checks that bytes conform to declared bounds.Source§fn check_bounds(bytes: &[u8])
fn check_bounds(bytes: &[u8])
Validates that a byte slice fits within this type’s declared bounds.
Source§impl SubAssign for Int
impl SubAssign for Int
Source§fn sub_assign(&mut self, __rhs: Int)
fn sub_assign(&mut self, __rhs: Int)
Performs the
-= operation. Read moreSource§impl UpdateView for Int
impl UpdateView for Int
type UpdateViewType = Int
Source§fn merge(&mut self, v: <Int as UpdateView>::UpdateViewType)
fn merge(&mut self, v: <Int as UpdateView>::UpdateViewType)
merge the updateview into self
Source§impl ValidateAuto for Int
impl ValidateAuto for Int
fn validate_self(&self) -> Result<(), ErrorTree>
fn validate_children(&self) -> Result<(), ErrorTree>
fn validate_self_with(&self, _ctx: &ValidateContext) -> Result<(), ErrorTree>
fn validate_children_with( &self, _ctx: &ValidateContext, ) -> Result<(), ErrorTree>
Source§impl ValidateCustom for Int
impl ValidateCustom for Int
fn validate_custom(&self) -> Result<(), ErrorTree>
fn validate_custom_with(&self, _ctx: &ValidateContext) -> Result<(), ErrorTree>
impl Eq for Int
impl StructuralPartialEq for Int
Auto Trait Implementations§
impl Freeze for Int
impl RefUnwindSafe for Int
impl Send for Int
impl Sync for Int
impl Unpin for Int
impl UnwindSafe for Int
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