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]
F: Idx,
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.
pub fn add(self, other: FaceId) -> FaceId
[src]
impl Add<FaceId> for FaceId
[src]
type Output = FaceId
The resulting type after applying the +
operator.
pub fn add(self, other: FaceId) -> FaceId
[src]
impl Add<usize> for FaceId
[src]
type Output = FaceId
The resulting type after applying the +
operator.
pub fn add(self, other: usize) -> FaceId
[src]
impl AddAssign<FaceId> for FaceId
[src]
pub fn add_assign(&mut self, other: FaceId)
[src]
impl AddAssign<usize> for FaceId
[src]
pub fn add_assign(&mut self, other: usize)
[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]
pub fn deserialize<D>(
deserializer: D
) -> Result<FaceId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<FaceId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
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]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Idx for FaceId
[src]
impl Ord for FaceId
[src]
pub fn cmp(&self, other: &FaceId) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<FaceId> for FaceId
[src]
impl PartialEq<FaceId> for usize
[src]
pub fn eq(&self, other: &FaceId) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<usize> for FaceId
[src]
pub fn eq(&self, other: &usize) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<FaceId> for usize
[src]
pub fn partial_cmp(&self, other: &FaceId) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<FaceId> for FaceId
[src]
pub fn partial_cmp(&self, other: &FaceId) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<usize> for FaceId
[src]
pub fn partial_cmp(&self, other: &usize) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Rem<usize> for FaceId
[src]
type Output = FaceId
The resulting type after applying the %
operator.
pub fn rem(self, other: usize) -> FaceId
[src]
impl Serialize for FaceId
[src]
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
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.
pub fn sub(self, other: FaceId) -> FaceId
[src]
impl Sub<FaceId> for FaceId
[src]
type Output = FaceId
The resulting type after applying the -
operator.
pub fn sub(self, other: FaceId) -> FaceId
[src]
impl Sub<usize> for FaceId
[src]
type Output = FaceId
The resulting type after applying the -
operator.
pub fn sub(self, other: usize) -> FaceId
[src]
impl SubAssign<FaceId> for FaceId
[src]
pub fn sub_assign(&mut self, other: FaceId)
[src]
impl SubAssign<usize> for FaceId
[src]
pub fn sub_assign(&mut self, other: usize)
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
A: Allocator + 'static,
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
Notable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
A: Allocator + 'static,
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<A> DynCastExt for A
pub fn dyn_cast<T>(
self
) -> Result<<A as DynCastExtHelper<T>>::Target, <A as DynCastExtHelper<T>>::Source> where
T: ?Sized,
A: DynCastExtHelper<T>,
self
) -> Result<<A as DynCastExtHelper<T>>::Target, <A as DynCastExtHelper<T>>::Source> where
T: ?Sized,
A: DynCastExtHelper<T>,
pub fn dyn_upcast<T>(self) -> <A as DynCastExtAdvHelper<T, T>>::Target where
T: ?Sized,
A: DynCastExtAdvHelper<T, T, Source = <A as DynCastExtAdvHelper<T, T>>::Target>,
T: ?Sized,
A: DynCastExtAdvHelper<T, T, Source = <A as DynCastExtAdvHelper<T, T>>::Target>,
pub fn dyn_cast_adv<F, T>(
self
) -> Result<<A as DynCastExtAdvHelper<F, T>>::Target, <A as DynCastExtAdvHelper<F, T>>::Source> where
T: ?Sized,
A: DynCastExtAdvHelper<F, T>,
F: ?Sized,
self
) -> Result<<A as DynCastExtAdvHelper<F, T>>::Target, <A as DynCastExtAdvHelper<F, T>>::Source> where
T: ?Sized,
A: DynCastExtAdvHelper<F, T>,
F: ?Sized,
pub fn dyn_cast_with_config<C>(
self
) -> Result<<A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Target, <A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Source> where
C: DynCastConfig,
A: DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>,
self
) -> Result<<A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Target, <A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Source> where
C: DynCastConfig,
A: DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>,
impl<T> From<T> for T
[src]
impl<I, T> IdxSliceIndex<I, T> for I where
I: Idx,
I: Idx,
type Output = T
pub fn get(
self,
slice: &IndexSlice<I, [T]>
) -> Option<&<I as IdxSliceIndex<I, T>>::Output>
self,
slice: &IndexSlice<I, [T]>
) -> Option<&<I as IdxSliceIndex<I, T>>::Output>
pub fn get_mut(
self,
slice: &mut IndexSlice<I, [T]>
) -> Option<&mut <I as IdxSliceIndex<I, T>>::Output>
self,
slice: &mut IndexSlice<I, [T]>
) -> Option<&mut <I as IdxSliceIndex<I, T>>::Output>
pub fn index(
self,
slice: &IndexSlice<I, [T]>
) -> &<I as IdxSliceIndex<I, T>>::Output
self,
slice: &IndexSlice<I, [T]>
) -> &<I as IdxSliceIndex<I, T>>::Output
pub fn index_mut(
self,
slice: &mut IndexSlice<I, [T]>
) -> &mut <I as IdxSliceIndex<I, T>>::Output
self,
slice: &mut IndexSlice<I, [T]>
) -> &mut <I as IdxSliceIndex<I, T>>::Output
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> OrdExt<T> for T where
T: Ord + Clone,
[src]
T: Ord + Clone,
pub fn update_max(&mut self, new: &T)
[src]
impl<T> RuleType for T where
T: Copy + Debug + Eq + Hash + Ord,
[src]
T: Copy + Debug + Eq + Hash + Ord,
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,