Struct otter_api_tests::shapelib::FaceId[][src]

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

Implementations

impl FaceId[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) -> FaceId[src]

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

pub fn from_raw(value: u8) -> FaceId[src]

Construct this index type from the wrapped integer type.

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

Construct this index type from one in a different domain

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

Construct from a usize without any checks.

pub const fn from_raw_unchecked(raw: u8) -> FaceId[src]

Construct from the underlying type without any checks.

pub fn from_usize(value: usize) -> FaceId[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) -> u8[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<FaceId> for usize[src]

type Output = FaceId

The resulting type after applying the + operator.

impl Add<FaceId> for FaceId[src]

type Output = FaceId

The resulting type after applying the + operator.

impl Add<usize> for FaceId[src]

type Output = FaceId

The resulting type after applying the + operator.

impl AddAssign<FaceId> for FaceId[src]

impl AddAssign<usize> for FaceId[src]

impl Clone for FaceId[src]

impl Copy for FaceId[src]

impl Debug for FaceId[src]

impl Default for FaceId[src]

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

impl Eq for FaceId[src]

impl From<FaceId> for usize[src]

impl From<FaceId> for u8[src]

impl From<u8> for FaceId[src]

impl From<usize> for FaceId[src]

impl Hash for FaceId[src]

impl Idx for FaceId[src]

impl Ord for FaceId[src]

impl PartialEq<FaceId> for FaceId[src]

impl PartialEq<FaceId> for usize[src]

impl PartialEq<usize> for FaceId[src]

impl PartialOrd<FaceId> for usize[src]

impl PartialOrd<FaceId> for FaceId[src]

impl PartialOrd<usize> for FaceId[src]

impl Rem<usize> for FaceId[src]

type Output = FaceId

The resulting type after applying the % operator.

impl Serialize for FaceId[src]

impl StructuralEq for FaceId[src]

impl StructuralPartialEq for FaceId[src]

impl Sub<FaceId> for usize[src]

type Output = FaceId

The resulting type after applying the - operator.

impl Sub<FaceId> for FaceId[src]

type Output = FaceId

The resulting type after applying the - operator.

impl Sub<usize> for FaceId[src]

type Output = FaceId

The resulting type after applying the - operator.

impl SubAssign<FaceId> for FaceId[src]

impl SubAssign<usize> for FaceId[src]

Auto Trait Implementations

impl RefUnwindSafe for FaceId

impl Send for FaceId

impl Sync for FaceId

impl Unpin for FaceId

impl UnwindSafe for FaceId

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>,