pub struct WeekIndex(/* private fields */);Trait Implementations§
Source§impl AddAssign for WeekIndex
impl AddAssign for WeekIndex
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl Bytes for WeekIndex
impl Bytes for WeekIndex
Source§impl CheckedSub for WeekIndex
impl CheckedSub for WeekIndex
fn checked_sub(self, rhs: Self) -> Option<Self>
Source§impl<'de> Deserialize<'de> for WeekIndex
impl<'de> Deserialize<'de> for WeekIndex
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 WeekIndex
impl Formattable for WeekIndex
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 JsonSchema for WeekIndex
impl JsonSchema for WeekIndex
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 WeekIndex
impl Ord for WeekIndex
Source§impl PartialOrd for WeekIndex
impl PartialOrd for WeekIndex
Source§impl Pco for WeekIndex
impl Pco for WeekIndex
type NumberType = <u16 as Pco>::NumberType
Source§impl PrintableIndex for WeekIndex
impl PrintableIndex for WeekIndex
impl Copy for WeekIndex
impl Eq for WeekIndex
impl StructuralPartialEq for WeekIndex
impl TransparentPco<<u16 as Pco>::NumberType> for WeekIndex
Auto Trait Implementations§
impl Freeze for WeekIndex
impl RefUnwindSafe for WeekIndex
impl Send for WeekIndex
impl Sync for WeekIndex
impl Unpin for WeekIndex
impl UnwindSafe for WeekIndex
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