#[repr(transparent)]pub struct SnapshotIdx(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl SnapshotIdx
impl SnapshotIdx
Sourcepub fn cast_slice(slice: &[u32]) -> &[Self]
pub fn cast_slice(slice: &[u32]) -> &[Self]
SnapshotIdx is #[repr(transparent)] over u32.
pub fn cast_slice_mut(slice: &mut [u32]) -> &mut [Self]
pub const fn from_raw(id: u32) -> Self
pub fn try_from_usize(idx: usize) -> Option<Self>
pub const fn as_usize(self) -> usize
pub const fn as_u32(self) -> u32
Trait Implementations§
Source§impl Clone for SnapshotIdx
impl Clone for SnapshotIdx
Source§fn clone(&self) -> SnapshotIdx
fn clone(&self) -> SnapshotIdx
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapshotIdx
impl Debug for SnapshotIdx
Source§impl Default for SnapshotIdx
impl Default for SnapshotIdx
Source§fn default() -> SnapshotIdx
fn default() -> SnapshotIdx
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SnapshotIdx
impl<'de> Deserialize<'de> for SnapshotIdx
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 Display for SnapshotIdx
impl Display for SnapshotIdx
Source§impl From<SnapshotIdx> for JsValuewhere
SnapshotIdx: Serialize,
impl From<SnapshotIdx> for JsValuewhere
SnapshotIdx: Serialize,
Source§fn from(value: SnapshotIdx) -> Self
fn from(value: SnapshotIdx) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotIdx> for u32
impl From<SnapshotIdx> for u32
Source§fn from(value: SnapshotIdx) -> Self
fn from(value: SnapshotIdx) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotIdx> for u64
impl From<SnapshotIdx> for u64
Source§fn from(idx: SnapshotIdx) -> u64
fn from(idx: SnapshotIdx) -> u64
Converts to this type from the input type.
Source§impl From<u32> for SnapshotIdx
impl From<u32> for SnapshotIdx
Source§impl FromWasmAbi for SnapshotIdxwhere
Self: DeserializeOwned,
impl FromWasmAbi for SnapshotIdxwhere
Self: DeserializeOwned,
Source§impl Hash for SnapshotIdx
impl Hash for SnapshotIdx
Source§impl IntoWasmAbi for &SnapshotIdxwhere
SnapshotIdx: Serialize,
impl IntoWasmAbi for &SnapshotIdxwhere
SnapshotIdx: Serialize,
Source§impl IntoWasmAbi for SnapshotIdxwhere
SnapshotIdx: Serialize,
impl IntoWasmAbi for SnapshotIdxwhere
SnapshotIdx: Serialize,
Source§impl OptionFromWasmAbi for SnapshotIdxwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for SnapshotIdxwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for SnapshotIdxwhere
SnapshotIdx: Serialize,
impl OptionIntoWasmAbi for SnapshotIdxwhere
SnapshotIdx: Serialize,
Source§impl Ord for SnapshotIdx
impl Ord for SnapshotIdx
Source§fn cmp(&self, other: &SnapshotIdx) -> Ordering
fn cmp(&self, other: &SnapshotIdx) -> Ordering
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 PartialEq for SnapshotIdx
impl PartialEq for SnapshotIdx
Source§impl PartialOrd for SnapshotIdx
impl PartialOrd for SnapshotIdx
Source§impl RefFromWasmAbi for SnapshotIdxwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for SnapshotIdxwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<SnapshotIdx>
type Anchor = SelfOwner<SnapshotIdx>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for SnapshotIdx
impl Serialize for SnapshotIdx
Source§impl Tsify for SnapshotIdx
impl Tsify for SnapshotIdx
Source§impl VectorFromWasmAbi for SnapshotIdxwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for SnapshotIdxwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for SnapshotIdxwhere
SnapshotIdx: Serialize,
impl VectorIntoWasmAbi for SnapshotIdxwhere
SnapshotIdx: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for SnapshotIdx
impl WasmDescribe for SnapshotIdx
Source§impl WasmDescribeVector for SnapshotIdx
impl WasmDescribeVector for SnapshotIdx
impl Copy for SnapshotIdx
impl Eq for SnapshotIdx
impl IsEnabled for SnapshotIdx
impl StructuralPartialEq for SnapshotIdx
Auto Trait Implementations§
impl Freeze for SnapshotIdx
impl RefUnwindSafe for SnapshotIdx
impl Send for SnapshotIdx
impl Sync for SnapshotIdx
impl Unpin for SnapshotIdx
impl UnsafeUnpin for SnapshotIdx
impl UnwindSafe for SnapshotIdx
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more