pub struct DecadeIndex(/* private fields */);Trait Implementations§
Source§impl Add<usize> for DecadeIndex
impl Add<usize> for DecadeIndex
Source§impl Add for DecadeIndex
impl Add for DecadeIndex
Source§type Output = DecadeIndex
type Output = DecadeIndex
The resulting type after applying the
+ operator.Source§fn add(self, rhs: DecadeIndex) -> <DecadeIndex as Add>::Output
fn add(self, rhs: DecadeIndex) -> <DecadeIndex as Add>::Output
Performs the
+ operation. Read moreSource§impl AddAssign for DecadeIndex
impl AddAssign for DecadeIndex
Source§fn add_assign(&mut self, rhs: DecadeIndex)
fn add_assign(&mut self, rhs: DecadeIndex)
Performs the
+= operation. Read moreSource§impl Bytes for DecadeIndex
impl Bytes for DecadeIndex
Source§impl CheckedSub for DecadeIndex
impl CheckedSub for DecadeIndex
fn checked_sub(self, rhs: DecadeIndex) -> Option<DecadeIndex>
Source§impl Clone for DecadeIndex
impl Clone for DecadeIndex
Source§fn clone(&self) -> DecadeIndex
fn clone(&self) -> DecadeIndex
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 DecadeIndex
impl Debug for DecadeIndex
Source§impl Default for DecadeIndex
impl Default for DecadeIndex
Source§fn default() -> DecadeIndex
fn default() -> DecadeIndex
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DecadeIndex
impl<'de> Deserialize<'de> for DecadeIndex
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecadeIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecadeIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DecadeIndex
impl Display for DecadeIndex
Source§impl Div<usize> for DecadeIndex
impl Div<usize> for DecadeIndex
Source§impl Formattable for DecadeIndex
impl Formattable for DecadeIndex
Source§impl From<Date> for DecadeIndex
impl From<Date> for DecadeIndex
Source§fn from(value: Date) -> DecadeIndex
fn from(value: Date) -> DecadeIndex
Converts to this type from the input type.
Source§impl From<DateIndex> for DecadeIndex
impl From<DateIndex> for DecadeIndex
Source§fn from(value: DateIndex) -> DecadeIndex
fn from(value: DateIndex) -> DecadeIndex
Converts to this type from the input type.
Source§impl From<DecadeIndex> for u16
impl From<DecadeIndex> for u16
Source§fn from(value: DecadeIndex) -> u16
fn from(value: DecadeIndex) -> u16
Converts to this type from the input type.
Source§impl From<DecadeIndex> for usize
impl From<DecadeIndex> for usize
Source§fn from(value: DecadeIndex) -> usize
fn from(value: DecadeIndex) -> usize
Converts to this type from the input type.
Source§impl From<YearIndex> for DecadeIndex
impl From<YearIndex> for DecadeIndex
Source§fn from(value: YearIndex) -> DecadeIndex
fn from(value: YearIndex) -> DecadeIndex
Converts to this type from the input type.
Source§impl From<u16> for DecadeIndex
impl From<u16> for DecadeIndex
Source§fn from(value: u16) -> DecadeIndex
fn from(value: u16) -> DecadeIndex
Converts to this type from the input type.
Source§impl From<usize> for DecadeIndex
impl From<usize> for DecadeIndex
Source§fn from(value: usize) -> DecadeIndex
fn from(value: usize) -> DecadeIndex
Converts to this type from the input type.
Source§impl FromCoarserIndex<DecadeIndex> for DateIndex
impl FromCoarserIndex<DecadeIndex> for DateIndex
Source§fn min_from(coarser: DecadeIndex) -> usize
fn min_from(coarser: DecadeIndex) -> usize
Returns the minimum fine-grained index represented by the coarse index.
Source§fn max_from_(coarser: DecadeIndex) -> usize
fn max_from_(coarser: DecadeIndex) -> usize
Returns the maximum fine-grained index represented by the coarse index.
Note: May exceed actual data length - use
max_from for bounded results.Source§fn max_from(coarser: T, len: usize) -> usize
fn max_from(coarser: T, len: usize) -> usize
Returns the maximum fine-grained index, bounded by the data length.
Source§fn inclusive_range_from(coarser: T, len: usize) -> RangeInclusive<usize>where
T: Clone,
fn inclusive_range_from(coarser: T, len: usize) -> RangeInclusive<usize>where
T: Clone,
Returns the inclusive range of fine-grained indices for the coarse index.
Source§impl JsonSchema for DecadeIndex
impl JsonSchema for DecadeIndex
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for DecadeIndex
impl Ord for DecadeIndex
Source§fn cmp(&self, other: &DecadeIndex) -> Ordering
fn cmp(&self, other: &DecadeIndex) -> 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 DecadeIndex
impl PartialEq for DecadeIndex
Source§impl PartialOrd for DecadeIndex
impl PartialOrd for DecadeIndex
Source§impl Pco for DecadeIndex
impl Pco for DecadeIndex
type NumberType = <u16 as Pco>::NumberType
Source§impl PrintableIndex for DecadeIndex
impl PrintableIndex for DecadeIndex
Source§impl Serialize for DecadeIndex
impl Serialize for DecadeIndex
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 Copy for DecadeIndex
impl Eq for DecadeIndex
impl StructuralPartialEq for DecadeIndex
impl TransparentPco<<u16 as Pco>::NumberType> for DecadeIndex
Auto Trait Implementations§
impl Freeze for DecadeIndex
impl RefUnwindSafe for DecadeIndex
impl Send for DecadeIndex
impl Sync for DecadeIndex
impl Unpin for DecadeIndex
impl UnwindSafe for DecadeIndex
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FromInnerSlice<<T as Pco>::NumberType> for Twhere
T: PcoVecValue,
impl<T> FromInnerSlice<<T as Pco>::NumberType> for Twhere
T: PcoVecValue,
const _SIZE_CHECK: ()
const _ALIGN_CHECK: ()
fn from_inner_slice(vec: Vec<<T as Pco>::NumberType>) -> Vec<T>
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 more