pub struct NumIntervals(/* private fields */);
Expand description
Type indicating a positive number of intervals. It is basically a usize
that cannot have a value smaller than 1
Implementations§
Source§impl NumIntervals
impl NumIntervals
Sourcepub fn into_inner(self) -> usize
pub fn into_inner(self) -> usize
Consumes the struct and returns the inner value.
Trait Implementations§
Source§impl AsRef<usize> for NumIntervals
impl AsRef<usize> for NumIntervals
Source§impl Clone for NumIntervals
impl Clone for NumIntervals
Source§fn clone(&self) -> NumIntervals
fn clone(&self) -> NumIntervals
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 NumIntervals
impl Debug for NumIntervals
Source§impl<'de> Deserialize<'de> for NumIntervals
impl<'de> Deserialize<'de> for NumIntervals
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 NumIntervals
impl Display for NumIntervals
Source§impl From<NumIntervals> for PositiveNumPoints1D
impl From<NumIntervals> for PositiveNumPoints1D
Source§fn from(value: NumIntervals) -> Self
fn from(value: NumIntervals) -> Self
Converts to this type from the input type.
Source§impl From<NumIntervals> for PositiveSize
impl From<NumIntervals> for PositiveSize
Source§fn from(value: NumIntervals) -> Self
fn from(value: NumIntervals) -> Self
Converts to this type from the input type.
Source§impl From<PositiveNumPoints1D> for NumIntervals
impl From<PositiveNumPoints1D> for NumIntervals
Source§fn from(value: PositiveNumPoints1D) -> Self
fn from(value: PositiveNumPoints1D) -> Self
Converts to this type from the input type.
Source§impl From<PositiveSize> for NumIntervals
impl From<PositiveSize> for NumIntervals
Source§fn from(value: PositiveSize) -> Self
fn from(value: PositiveSize) -> Self
Converts to this type from the input type.
Source§impl Hash for NumIntervals
impl Hash for NumIntervals
Source§impl IntoInner for NumIntervals
impl IntoInner for NumIntervals
Source§impl Ord for NumIntervals
impl Ord for NumIntervals
Source§fn cmp(&self, other: &NumIntervals) -> Ordering
fn cmp(&self, other: &NumIntervals) -> 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 NumIntervals
impl PartialEq for NumIntervals
Source§impl PartialOrd for NumIntervals
impl PartialOrd for NumIntervals
Source§impl Serialize for NumIntervals
impl Serialize for NumIntervals
Source§impl TryFrom<Size> for NumIntervals
impl TryFrom<Size> for NumIntervals
Source§impl TryNew for NumIntervals
impl TryNew for NumIntervals
impl Copy for NumIntervals
impl Eq for NumIntervals
impl PositiveIntTrait for NumIntervals
impl StructuralPartialEq for NumIntervals
Auto Trait Implementations§
impl Freeze for NumIntervals
impl RefUnwindSafe for NumIntervals
impl Send for NumIntervals
impl Sync for NumIntervals
impl Unpin for NumIntervals
impl UnwindSafe for NumIntervals
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.