#[repr(transparent)]pub struct IndexInvalid<Idx = usize> {
pub index: Idx,
}Fields§
§index: IdxImplementations§
Source§impl<Idx> IndexInvalid<Idx>
impl<Idx> IndexInvalid<Idx>
pub fn new(index: Idx) -> IndexInvalid<Idx>
Trait Implementations§
Source§impl<Idx> Clone for IndexInvalid<Idx>where
Idx: Clone,
impl<Idx> Clone for IndexInvalid<Idx>where
Idx: Clone,
Source§fn clone(&self) -> IndexInvalid<Idx>
fn clone(&self) -> IndexInvalid<Idx>
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<Idx> Debug for IndexInvalid<Idx>where
Idx: Debug,
impl<Idx> Debug for IndexInvalid<Idx>where
Idx: Debug,
Source§impl<'de, Idx> Deserialize<'de> for IndexInvalid<Idx>where
Idx: Deserialize<'de>,
impl<'de, Idx> Deserialize<'de> for IndexInvalid<Idx>where
Idx: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexInvalid<Idx>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexInvalid<Idx>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Idx> Hash for IndexInvalid<Idx>where
Idx: Hash,
impl<Idx> Hash for IndexInvalid<Idx>where
Idx: Hash,
Source§impl<Idx> Ord for IndexInvalid<Idx>where
Idx: Ord,
impl<Idx> Ord for IndexInvalid<Idx>where
Idx: Ord,
Source§fn cmp(&self, other: &IndexInvalid<Idx>) -> Ordering
fn cmp(&self, other: &IndexInvalid<Idx>) -> 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<Idx> PartialEq for IndexInvalid<Idx>where
Idx: PartialEq,
impl<Idx> PartialEq for IndexInvalid<Idx>where
Idx: PartialEq,
Source§impl<Idx> PartialOrd for IndexInvalid<Idx>where
Idx: PartialOrd,
impl<Idx> PartialOrd for IndexInvalid<Idx>where
Idx: PartialOrd,
Source§impl<Idx> Serialize for IndexInvalid<Idx>where
Idx: Serialize,
impl<Idx> Serialize for IndexInvalid<Idx>where
Idx: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<Idx> Copy for IndexInvalid<Idx>where
Idx: Copy,
impl<Idx> Eq for IndexInvalid<Idx>where
Idx: Eq,
impl<Idx> StructuralPartialEq for IndexInvalid<Idx>
Auto Trait Implementations§
impl<Idx> Freeze for IndexInvalid<Idx>where
Idx: Freeze,
impl<Idx> RefUnwindSafe for IndexInvalid<Idx>where
Idx: RefUnwindSafe,
impl<Idx> Send for IndexInvalid<Idx>where
Idx: Send,
impl<Idx> Sync for IndexInvalid<Idx>where
Idx: Sync,
impl<Idx> Unpin for IndexInvalid<Idx>where
Idx: Unpin,
impl<Idx> UnsafeUnpin for IndexInvalid<Idx>where
Idx: UnsafeUnpin,
impl<Idx> UnwindSafe for IndexInvalid<Idx>where
Idx: 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<S, T> CastRangeInto<T> for Swhere
T: CastRangeFrom<S>,
impl<S, T> CastRangeInto<T> for Swhere
T: CastRangeFrom<S>,
fn cast_range_into(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
fn from_json_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_json_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
fn from_json(json: &str) -> Result<Self, EncodeError>
Source§impl<T> FromRon for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromRon for Twhere
T: for<'de> Deserialize<'de>,
fn from_ron_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_ron_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
fn from_ron(ron: &str) -> Result<Self, EncodeError>
Source§impl<T> FromTmpBin for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromTmpBin for Twhere
T: for<'de> Deserialize<'de>,
fn from_tmp_bin_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_tmp_bin_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
Source§impl<T> FromXml for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromXml for Twhere
T: for<'de> Deserialize<'de>,
fn from_xml_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_xml_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
fn from_xml(xml: &str) -> Result<Self, EncodeError>
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> PartialOrdExtension for Twhere
T: PartialOrd,
impl<T> PartialOrdExtension for Twhere
T: PartialOrd,
Source§fn max_partial(self, other: Self) -> Selfwhere
Self: Sized,
fn max_partial(self, other: Self) -> Selfwhere
Self: Sized,
Using
PartialOrd operator, not component wiseSource§fn min_partial(self, other: Self) -> Selfwhere
Self: Sized,
fn min_partial(self, other: Self) -> Selfwhere
Self: Sized,
Using
PartialOrd operator, not component wiseSource§fn clamp_partial(self, min: Self, max: Self) -> Selfwhere
Self: Sized,
fn clamp_partial(self, min: Self, max: Self) -> Selfwhere
Self: Sized,
Using
PartialOrd operator, not component wiseSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToJson for Twhere
T: Serialize,
impl<T> ToJson for Twhere
T: Serialize,
fn to_json(&self) -> Result<String, EncodeError>
fn to_json_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>where
W: Write,
Source§impl<T> ToRon for Twhere
T: Serialize,
impl<T> ToRon for Twhere
T: Serialize,
fn to_ron(&self) -> Result<String, EncodeError>
fn to_ron_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>where
W: Write,
Source§impl<T> ToTmpBin for Twhere
T: Serialize,
impl<T> ToTmpBin for Twhere
T: Serialize,
Source§fn to_tmp_bin(&self) -> Result<Vec<u8>, EncodeError>
fn to_tmp_bin(&self) -> Result<Vec<u8>, EncodeError>
Intended for short-term storage of data in a binary format, such as during data transfer. Read more
Source§fn to_tmp_bin_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>where
W: Write,
fn to_tmp_bin_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>where
W: Write,
Intended for short-term storage of data in a binary format, such as during data transfer. Read more