Struct otter_api_tests::shapelib::Notch[][src]

#[repr(transparent)]
pub struct Notch { /* fields omitted */ }

Implementations

impl Notch[src]

pub const MAX_INDEX: usize[src]

If Self::CHECKS_MAX_INDEX is true, we’ll assert if trying to produce a value larger than this in any of the ctors that don’t have unchecked in their name.

pub const CHECKS_MAX_INDEX: bool[src]

Does this index type assert if asked to construct an index larger than MAX_INDEX?

pub fn new(value: usize) -> Notch[src]

Construct this index type from a usize. Alias for from_usize.

pub fn from_raw(value: u32) -> Notch[src]

Construct this index type from the wrapped integer type.

pub fn from_foreign<F>(value: F) -> Notch where
    F: Idx
[src]

Construct this index type from one in a different domain

pub const fn from_usize_unchecked(value: usize) -> Notch[src]

Construct from a usize without any checks.

pub const fn from_raw_unchecked(raw: u32) -> Notch[src]

Construct from the underlying type without any checks.

pub fn from_usize(value: usize) -> Notch[src]

Construct this index type from a usize.

pub fn index(self) -> usize[src]

Get the wrapped index as a usize.

pub fn raw(self) -> u32[src]

Get the wrapped index.

pub fn check_index(v: usize)[src]

Asserts v <= Self::MAX_INDEX unless Self::CHECKS_MAX_INDEX is false.

Trait Implementations

impl Add<Notch> for Notch[src]

type Output = Notch

The resulting type after applying the + operator.

impl Add<Notch> for usize[src]

type Output = Notch

The resulting type after applying the + operator.

impl Add<usize> for Notch[src]

type Output = Notch

The resulting type after applying the + operator.

impl AddAssign<Notch> for Notch[src]

impl AddAssign<usize> for Notch[src]

impl Clone for Notch[src]

impl Copy for Notch[src]

impl Debug for Notch[src]

impl<'de> Deserialize<'de> for Notch[src]

impl Eq for Notch[src]

impl From<Notch> for u32[src]

impl From<Notch> for usize[src]

impl From<usize> for Notch[src]

impl Hash for Notch[src]

impl Idx for Notch[src]

impl Ord for Notch[src]

impl PartialEq<Notch> for Notch[src]

impl PartialEq<Notch> for usize[src]

impl PartialEq<usize> for Notch[src]

impl PartialOrd<Notch> for usize[src]

impl PartialOrd<Notch> for Notch[src]

impl PartialOrd<usize> for Notch[src]

impl Rem<usize> for Notch[src]

type Output = Notch

The resulting type after applying the % operator.

impl Serialize for Notch[src]

impl StructuralEq for Notch[src]

impl StructuralPartialEq for Notch[src]

impl Sub<Notch> for Notch[src]

type Output = Notch

The resulting type after applying the - operator.

impl Sub<Notch> for usize[src]

type Output = Notch

The resulting type after applying the - operator.

impl Sub<usize> for Notch[src]

type Output = Notch

The resulting type after applying the - operator.

impl SubAssign<Notch> for Notch[src]

impl SubAssign<usize> for Notch[src]

Auto Trait Implementations

impl RefUnwindSafe for Notch

impl Send for Notch

impl Sync for Notch

impl Unpin for Notch

impl UnwindSafe for Notch

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<A> DynCastExt for A

impl<T> From<T> for T[src]

impl<I, T> IdxSliceIndex<I, T> for I where
    I: Idx

type Output = T

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> OrdExt<T> for T where
    T: Ord + Clone
[src]

impl<T> RuleType for T where
    T: Copy + Debug + Eq + Hash + Ord
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,