Struct temporenc::DateOnly
[−]
[src]
pub struct DateOnly { /* fields omitted */ }
Methods
impl DateOnly
[src]
fn deserialize<R: Read>(reader: &mut R)
-> Result<DateOnly, DeserializationError>
-> Result<DateOnly, DeserializationError>
fn serialize_components<W: Write>(year: Option<u16>,
month: Option<u8>,
day: Option<u8>,
writer: &mut W)
-> Result<usize, SerializationError>
month: Option<u8>,
day: Option<u8>,
writer: &mut W)
-> Result<usize, SerializationError>
fn serialize<W: Write>(&self,
writer: &mut W)
-> Result<usize, SerializationError>
writer: &mut W)
-> Result<usize, SerializationError>
Trait Implementations
impl Debug for DateOnly
[src]
impl Date for DateOnly
[src]
fn year(&self) -> Option<u16>
If present, the year. In range [0, 4094].
fn month(&self) -> Option<u8>
If present, the month. In range [1, 12].
fn day(&self) -> Option<u8>
If present, the day. In range [1, 31].
impl Serializable for DateOnly
[src]
fn max_serialized_size() -> usize
The largest encoded size of any instance of the type
fn serialized_size(&self) -> usize
The encoded size of this instance