pub struct DateIndex(/* private fields */);Implementations§
Trait Implementations§
Source§impl Bytes for DateIndex
impl Bytes for DateIndex
Source§impl CheckedSub for DateIndex
impl CheckedSub for DateIndex
fn checked_sub(self, rhs: Self) -> Option<Self>
Source§impl<'de> Deserialize<'de> for DateIndex
impl<'de> Deserialize<'de> for DateIndex
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Formattable for DateIndex
impl Formattable for DateIndex
Source§impl From<DateIndex> for DecadeIndex
impl From<DateIndex> for DecadeIndex
Source§impl From<DateIndex> for MonthIndex
impl From<DateIndex> for MonthIndex
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 FromCoarserIndex<MonthIndex> for DateIndex
impl FromCoarserIndex<MonthIndex> for DateIndex
Source§fn min_from(coarser: MonthIndex) -> usize
fn min_from(coarser: MonthIndex) -> usize
Returns the minimum fine-grained index represented by the coarse index.
Source§fn max_from_(coarser: MonthIndex) -> usize
fn max_from_(coarser: MonthIndex) -> 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 FromCoarserIndex<QuarterIndex> for DateIndex
impl FromCoarserIndex<QuarterIndex> for DateIndex
Source§fn min_from(coarser: QuarterIndex) -> usize
fn min_from(coarser: QuarterIndex) -> usize
Returns the minimum fine-grained index represented by the coarse index.
Source§fn max_from_(coarser: QuarterIndex) -> usize
fn max_from_(coarser: QuarterIndex) -> 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 FromCoarserIndex<SemesterIndex> for DateIndex
impl FromCoarserIndex<SemesterIndex> for DateIndex
Source§fn min_from(coarser: SemesterIndex) -> usize
fn min_from(coarser: SemesterIndex) -> usize
Returns the minimum fine-grained index represented by the coarse index.
Source§fn max_from_(coarser: SemesterIndex) -> usize
fn max_from_(coarser: SemesterIndex) -> 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 FromCoarserIndex<WeekIndex> for DateIndex
impl FromCoarserIndex<WeekIndex> for DateIndex
Source§fn min_from(coarser: WeekIndex) -> usize
fn min_from(coarser: WeekIndex) -> usize
Returns the minimum fine-grained index represented by the coarse index.
Source§fn max_from_(coarser: WeekIndex) -> usize
fn max_from_(coarser: WeekIndex) -> 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 FromCoarserIndex<YearIndex> for DateIndex
impl FromCoarserIndex<YearIndex> for DateIndex
Source§fn min_from(coarser: YearIndex) -> usize
fn min_from(coarser: YearIndex) -> usize
Returns the minimum fine-grained index represented by the coarse index.
Source§fn max_from_(coarser: YearIndex) -> usize
fn max_from_(coarser: YearIndex) -> 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 DateIndex
impl JsonSchema for DateIndex
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 DateIndex
impl Ord for DateIndex
Source§impl PartialOrd for DateIndex
impl PartialOrd for DateIndex
Source§impl Pco for DateIndex
impl Pco for DateIndex
type NumberType = <u16 as Pco>::NumberType
Source§impl PrintableIndex for DateIndex
impl PrintableIndex for DateIndex
impl Copy for DateIndex
impl Eq for DateIndex
impl StructuralPartialEq for DateIndex
impl TransparentPco<<u16 as Pco>::NumberType> for DateIndex
Auto Trait Implementations§
impl Freeze for DateIndex
impl RefUnwindSafe for DateIndex
impl Send for DateIndex
impl Sync for DateIndex
impl Unpin for DateIndex
impl UnwindSafe for DateIndex
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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