Skip to main content

PatternsByGreatestDifferenceULE

Struct PatternsByGreatestDifferenceULE 

Source
#[repr(C, packed(1))]
pub struct PatternsByGreatestDifferenceULE { pub header: <GreatestDifferenceHeader as AsULE>::ULE, pub patterns: VarZeroSlice<PatternULE>, }
Expand description

Fields§

§header: <GreatestDifferenceHeader as AsULE>::ULE§patterns: VarZeroSlice<PatternULE>

Implementations§

Source§

impl PatternsByGreatestDifferenceULE

Source

pub fn get_date_pattern<'a>( &'a self, field: DateGreatestDifferenceField, ) -> Option<RangePatternInfoBorrowed<'a>>

Gets the pattern info for the given date field, falling back to larger fields if necessary.

Source

pub fn get_time_pattern<'a>( &'a self, field: TimeGreatestDifferenceField, ) -> Option<RangePatternInfoBorrowed<'a>>

Gets the pattern info for the given time field, falling back to larger fields if necessary.

Trait Implementations§

Source§

impl Debug for PatternsByGreatestDifferenceULE

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'a, 'de> Deserialize<'de> for &'a PatternsByGreatestDifferenceULE
where 'de: 'a,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<&'a PatternsByGreatestDifferenceULE, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'data> EncodeAsVarULE<PatternsByGreatestDifferenceULE> for PatternsByGreatestDifference<'data>

Source§

fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R

Calls cb with a piecewise list of byte slices that when concatenated produce the memory pattern of the corresponding instance of T. Read more
Source§

fn encode_var_ule_len(&self) -> usize

Return the length, in bytes, of the corresponding VarULE type
Source§

fn encode_var_ule_write(&self, dst: &mut [u8])

Write the corresponding VarULE type to the dst buffer. dst should be the size of Self::encode_var_ule_len()
Source§

impl<'data> EncodeAsVarULE<PatternsByGreatestDifferenceULE> for &PatternsByGreatestDifference<'data>

Source§

fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R

Calls cb with a piecewise list of byte slices that when concatenated produce the memory pattern of the corresponding instance of T. Read more
Source§

fn encode_var_ule_len(&self) -> usize

Return the length, in bytes, of the corresponding VarULE type
Source§

fn encode_var_ule_write(&self, dst: &mut [u8])

Write the corresponding VarULE type to the dst buffer. dst should be the size of Self::encode_var_ule_len()
Source§

impl Eq for PatternsByGreatestDifferenceULE

Source§

impl<'data> From<&'data PatternsByGreatestDifferenceULE> for PatternsByGreatestDifference<'data>

Source§

fn from( other: &'data PatternsByGreatestDifferenceULE, ) -> PatternsByGreatestDifference<'data>

Converts to this type from the input type.
Source§

impl PartialEq for PatternsByGreatestDifferenceULE

Source§

fn eq(&self, other: &PatternsByGreatestDifferenceULE) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for PatternsByGreatestDifferenceULE

Source§

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
Source§

impl ToOwned for PatternsByGreatestDifferenceULE

Source§

type Owned = Box<PatternsByGreatestDifferenceULE>

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> <PatternsByGreatestDifferenceULE as ToOwned>::Owned

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl VarULE for PatternsByGreatestDifferenceULE

Source§

fn validate_bytes(bytes_one: &[u8]) -> Result<(), UleError>

Validates a byte slice, &[u8]. Read more
Source§

unsafe fn from_bytes_unchecked(bytes: &[u8]) -> &PatternsByGreatestDifferenceULE

Takes a byte slice, &[u8], and return it as &Self with the same lifetime, assuming that this byte slice has previously been run through Self::parse_bytes() with success. Read more
Source§

fn parse_bytes(bytes: &[u8]) -> Result<&Self, UleError>

Parses a byte slice, &[u8], and return it as &Self with the same lifetime. Read more
Source§

fn as_bytes(&self) -> &[u8] ⓘ

Given &Self, returns a &[u8] with the same lifetime. Read more
Source§

fn to_boxed(&self) -> Box<Self>

Allocate on the heap as a Box<T> Read more
Source§

impl<'data> ZeroFrom<'data, PatternsByGreatestDifferenceULE> for PatternsByGreatestDifference<'data>

Source§

fn zero_from( other: &'data PatternsByGreatestDifferenceULE, ) -> PatternsByGreatestDifference<'data>

Clone the other C into a struct that may retain references into C.
Source§

impl<'a> ZeroMapKV<'a> for PatternsByGreatestDifferenceULE

Source§

type Container = VarZeroVec<'a, PatternsByGreatestDifferenceULE>

The container that can be used with this type: ZeroVec or VarZeroVec.
Source§

type Slice = VarZeroSlice<PatternsByGreatestDifferenceULE>

Source§

type GetType = PatternsByGreatestDifferenceULE

The type produced by Container::get() Read more
Source§

type OwnedType = Box<PatternsByGreatestDifferenceULE>

The type produced by Container::replace() and Container::remove(), also used during deserialization. If Self is human readable serialized, deserializing to Self::OwnedType should produce the same value once passed through Self::owned_as_self() Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> EncodeAsVarULE<T> for T
where T: VarULE + ?Sized,

Source§

fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R

Calls cb with a piecewise list of byte slices that when concatenated produce the memory pattern of the corresponding instance of T. Read more
Source§

fn encode_var_ule_len(&self) -> usize

Return the length, in bytes, of the corresponding VarULE type
Source§

fn encode_var_ule_write(&self, dst: &mut [u8])

Write the corresponding VarULE type to the dst buffer. dst should be the size of Self::encode_var_ule_len()
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>