Struct ex3_node_types::range::CandidRange
source · pub struct CandidRange<Idx: CandidType> {
pub start: Idx,
pub end: Idx,
}Fields§
§start: Idx§end: IdxImplementations§
source§impl<Idx: PartialOrd<Idx> + CandidType> CandidRange<Idx>
impl<Idx: PartialOrd<Idx> + CandidType> CandidRange<Idx>
Trait Implementations§
source§impl<Idx: CandidType + CandidType> CandidType for CandidRange<Idx>
impl<Idx: CandidType + CandidType> CandidType for CandidRange<Idx>
source§impl<Idx: Clone + CandidType> Clone for CandidRange<Idx>
impl<Idx: Clone + CandidType> Clone for CandidRange<Idx>
source§fn clone(&self) -> CandidRange<Idx>
fn clone(&self) -> CandidRange<Idx>
Returns a copy 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<Idx: Debug + CandidType> Debug for CandidRange<Idx>
impl<Idx: Debug + CandidType> Debug for CandidRange<Idx>
source§impl<Idx: Default + CandidType> Default for CandidRange<Idx>
impl<Idx: Default + CandidType> Default for CandidRange<Idx>
source§fn default() -> CandidRange<Idx>
fn default() -> CandidRange<Idx>
Returns the “default value” for a type. Read more
source§impl<'de, Idx> Deserialize<'de> for CandidRange<Idx>where
Idx: Deserialize<'de> + CandidType,
impl<'de, Idx> Deserialize<'de> for CandidRange<Idx>where
Idx: Deserialize<'de> + CandidType,
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<Idx, Idx2> From<CandidRange<Idx>> for Range<Idx2>
impl<Idx, Idx2> From<CandidRange<Idx>> for Range<Idx2>
source§fn from(range: CandidRange<Idx>) -> Self
fn from(range: CandidRange<Idx>) -> Self
Converts to this type from the input type.
source§impl<Idx, Idx2: PartialOrd<Idx> + CandidType> From<Range<Idx>> for CandidRange<Idx2>where
Idx: Into<Idx2>,
impl<Idx, Idx2: PartialOrd<Idx> + CandidType> From<Range<Idx>> for CandidRange<Idx2>where
Idx: Into<Idx2>,
source§impl<Idx: Hash + CandidType> Hash for CandidRange<Idx>
impl<Idx: Hash + CandidType> Hash for CandidRange<Idx>
source§impl<Idx: PartialEq + CandidType> PartialEq for CandidRange<Idx>
impl<Idx: PartialEq + CandidType> PartialEq for CandidRange<Idx>
source§impl<Idx: PartialOrd<Idx> + CandidType> RangeBounds<Idx> for CandidRange<Idx>
impl<Idx: PartialOrd<Idx> + CandidType> RangeBounds<Idx> for CandidRange<Idx>
source§impl<Idx> Serialize for CandidRange<Idx>where
Idx: Serialize + CandidType,
impl<Idx> Serialize for CandidRange<Idx>where
Idx: Serialize + CandidType,
impl<Idx: Copy + CandidType> Copy for CandidRange<Idx>
impl<Idx: Eq + CandidType> Eq for CandidRange<Idx>
impl<Idx: CandidType> StructuralPartialEq for CandidRange<Idx>
Auto Trait Implementations§
impl<Idx> Freeze for CandidRange<Idx>where
Idx: Freeze,
impl<Idx> RefUnwindSafe for CandidRange<Idx>where
Idx: RefUnwindSafe,
impl<Idx> Send for CandidRange<Idx>where
Idx: Send,
impl<Idx> Sync for CandidRange<Idx>where
Idx: Sync,
impl<Idx> Unpin for CandidRange<Idx>where
Idx: Unpin,
impl<Idx> UnwindSafe for CandidRange<Idx>where
Idx: UnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)