pub enum GenericPatternItem {
Placeholder(u8),
Literal(char),
}
Expand description
An element of a GenericPattern
.
๐ง 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.
Variantsยง
Trait Implementationsยง
sourceยงimpl AsULE for GenericPatternItem
impl AsULE for GenericPatternItem
sourceยงfn to_unaligned(self) -> <GenericPatternItem as AsULE>::ULE
fn to_unaligned(self) -> <GenericPatternItem as AsULE>::ULE
sourceยงfn from_unaligned(
unaligned: <GenericPatternItem as AsULE>::ULE,
) -> GenericPatternItem
fn from_unaligned( unaligned: <GenericPatternItem as AsULE>::ULE, ) -> GenericPatternItem
sourceยงimpl Bake for GenericPatternItem
impl Bake for GenericPatternItem
sourceยงfn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
sourceยงimpl BakeSize for GenericPatternItem
impl BakeSize for GenericPatternItem
sourceยงfn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
sourceยงimpl Clone for GenericPatternItem
impl Clone for GenericPatternItem
sourceยงfn clone(&self) -> GenericPatternItem
fn clone(&self) -> GenericPatternItem
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 GenericPatternItem
impl Debug for GenericPatternItem
sourceยงimpl<'de> Deserialize<'de> for GenericPatternItem
impl<'de> Deserialize<'de> for GenericPatternItem
sourceยงfn deserialize<__D>(
__deserializer: __D,
) -> Result<GenericPatternItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GenericPatternItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceยงimpl From<char> for GenericPatternItem
impl From<char> for GenericPatternItem
sourceยงfn from(input: char) -> GenericPatternItem
fn from(input: char) -> GenericPatternItem
Converts to this type from the input type.
sourceยงimpl From<u8> for GenericPatternItem
impl From<u8> for GenericPatternItem
sourceยงfn from(input: u8) -> GenericPatternItem
fn from(input: u8) -> GenericPatternItem
Converts to this type from the input type.
sourceยงimpl PartialEq for GenericPatternItem
impl PartialEq for GenericPatternItem
sourceยงimpl Serialize for GenericPatternItem
impl Serialize for GenericPatternItem
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 GenericPatternItem
impl Eq for GenericPatternItem
impl StructuralPartialEq for GenericPatternItem
Auto Trait Implementationsยง
impl Freeze for GenericPatternItem
impl RefUnwindSafe for GenericPatternItem
impl Send for GenericPatternItem
impl Sync for GenericPatternItem
impl Unpin for GenericPatternItem
impl UnwindSafe for GenericPatternItem
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