pub struct PatternMetadata(/* private fields */);
Expand description
Metadata associated with a Pattern
.
🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Implementations§
source§impl PatternMetadata
impl PatternMetadata
sourcepub const fn from_time_granularity(
time_granularity: TimeGranularity,
) -> PatternMetadata
pub const fn from_time_granularity( time_granularity: TimeGranularity, ) -> PatternMetadata
Creates a PatternMetadata
from the TimeGranularity
enum.
Trait Implementations§
source§impl AsULE for PatternMetadata
impl AsULE for PatternMetadata
source§fn to_unaligned(self) -> <PatternMetadata as AsULE>::ULE
fn to_unaligned(self) -> <PatternMetadata as AsULE>::ULE
source§fn from_unaligned(unaligned: <PatternMetadata as AsULE>::ULE) -> PatternMetadata
fn from_unaligned(unaligned: <PatternMetadata as AsULE>::ULE) -> PatternMetadata
source§impl Bake for PatternMetadata
impl Bake for PatternMetadata
source§fn bake(&self, ctx: &CrateEnv) -> TokenStream
fn bake(&self, ctx: &CrateEnv) -> TokenStream
source§impl BakeSize for PatternMetadata
impl BakeSize for PatternMetadata
source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
source§impl Clone for PatternMetadata
impl Clone for PatternMetadata
source§fn clone(&self) -> PatternMetadata
fn clone(&self) -> PatternMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PatternMetadata
impl Debug for PatternMetadata
source§impl Default for PatternMetadata
impl Default for PatternMetadata
source§fn default() -> PatternMetadata
fn default() -> PatternMetadata
Returns the “default value” for a type. Read more
source§impl PartialEq for PatternMetadata
impl PartialEq for PatternMetadata
source§impl<'a> ZeroMapKV<'a> for PatternMetadata
impl<'a> ZeroMapKV<'a> for PatternMetadata
source§type Container = ZeroVec<'a, PatternMetadata>
type Container = ZeroVec<'a, PatternMetadata>
The container that can be used with this type:
ZeroVec
or VarZeroVec
.type Slice = ZeroSlice<PatternMetadata>
source§type OwnedType = PatternMetadata
type OwnedType = PatternMetadata
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 moreimpl Copy for PatternMetadata
impl Eq for PatternMetadata
impl StructuralPartialEq for PatternMetadata
Auto Trait Implementations§
impl Freeze for PatternMetadata
impl RefUnwindSafe for PatternMetadata
impl Send for PatternMetadata
impl Sync for PatternMetadata
impl Unpin for PatternMetadata
impl UnwindSafe for PatternMetadata
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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