pub struct IntRange<T> {
min: T,
max: T,
step: T,
}
Fields§
§min: T
§max: T
§step: T
Implementations§
Trait Implementations§
source§impl StaticType for IntRange<i32>
impl StaticType for IntRange<i32>
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl StaticType for IntRange<i64>
impl StaticType for IntRange<i64>
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl<T: Copy> Copy for IntRange<T>
impl<T: Eq> Eq for IntRange<T>
impl<T> StructuralPartialEq for IntRange<T>
Auto Trait Implementations§
impl<T> Freeze for IntRange<T>where
T: Freeze,
impl<T> RefUnwindSafe for IntRange<T>where
T: RefUnwindSafe,
impl<T> Send for IntRange<T>where
T: Send,
impl<T> Sync for IntRange<T>where
T: Sync,
impl<T> Unpin for IntRange<T>where
T: Unpin,
impl<T> UnwindSafe for IntRange<T>where
T: 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§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
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.