pub struct Year1(/* private fields */);Implementations§
Trait Implementations§
Source§impl AddAssign for Year1
impl AddAssign for Year1
Source§fn add_assign(&mut self, rhs: Year1)
fn add_assign(&mut self, rhs: Year1)
Performs the
+= operation. Read moreSource§impl Bytes for Year1
impl Bytes for Year1
Source§type Array = <u8 as Bytes>::Array
type Array = <u8 as Bytes>::Array
The byte array type returned by
to_bytes.
For fixed-size types, this is [u8; N] where N is the size of the type.Source§fn from_bytes(bytes: &[u8]) -> Result<Year1, Error>
fn from_bytes(bytes: &[u8]) -> Result<Year1, Error>
Deserializes a value from bytes. Read more
Source§const IS_NATIVE_LAYOUT: bool = false
const IS_NATIVE_LAYOUT: bool = false
Whether the byte representation from
to_bytes is identical to the
in-memory representation of Self. When true, bulk operations can use
memcpy instead of per-element deserialization. Read moreSource§impl CheckedSub for Year1
impl CheckedSub for Year1
Source§impl<'de> Deserialize<'de> for Year1
impl<'de> Deserialize<'de> for Year1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Year1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Year1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Formattable for Year1
impl Formattable for Year1
Source§impl FromCoarserIndex<Year1> for Day1
impl FromCoarserIndex<Year1> for Day1
Source§fn min_from(coarser: Year1) -> usize
fn min_from(coarser: Year1) -> usize
Returns the minimum fine-grained index represented by the coarse index.
Source§fn max_from_(coarser: Year1) -> usize
fn max_from_(coarser: Year1) -> 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.
Returns 0 if len is 0 (empty data).
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.
Returns an empty range (1..=0) if len is 0.
Source§impl JsonSchema for Year1
impl JsonSchema for Year1
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 Year1
impl Ord for Year1
Source§impl PartialOrd for Year1
impl PartialOrd for Year1
Source§impl Pco for Year1
impl Pco for Year1
type NumberType = <u8 as Pco>::NumberType
Source§impl PrintableIndex for Year1
impl PrintableIndex for Year1
Source§impl Serialize for Year1
impl Serialize for Year1
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 Year1
impl Eq for Year1
impl StructuralPartialEq for Year1
impl TransparentPco<<u8 as Pco>::NumberType> for Year1
Auto Trait Implementations§
impl Freeze for Year1
impl RefUnwindSafe for Year1
impl Send for Year1
impl Sync for Year1
impl Unpin for Year1
impl UnsafeUnpin for Year1
impl UnwindSafe for Year1
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