pub enum FeatureName {
Serde,
Builder,
Query,
Strum,
}Expand description
The name of a feature.
Variants§
Implementations§
Source§impl FeatureName
impl FeatureName
Sourcepub const fn is_serde(&self) -> bool
pub const fn is_serde(&self) -> bool
Returns true if the enum is FeatureName::Serde otherwise false
Sourcepub const fn is_builder(&self) -> bool
pub const fn is_builder(&self) -> bool
Returns true if the enum is FeatureName::Builder otherwise false
Source§impl FeatureName
impl FeatureName
Source§impl FeatureName
impl FeatureName
pub fn is_enabled(&self) -> bool
Trait Implementations§
Source§impl AsRef<str> for FeatureName
impl AsRef<str> for FeatureName
Source§impl Clone for FeatureName
impl Clone for FeatureName
Source§fn clone(&self) -> FeatureName
fn clone(&self) -> FeatureName
Returns a duplicate 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 FeatureName
impl Debug for FeatureName
Source§impl Display for FeatureName
impl Display for FeatureName
Source§impl<'_derivative_strum> From<&'_derivative_strum FeatureName> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum FeatureName> for &'static str
Source§fn from(x: &'_derivative_strum FeatureName) -> &'static str
fn from(x: &'_derivative_strum FeatureName) -> &'static str
Converts to this type from the input type.
Source§impl From<FeatureName> for &'static str
impl From<FeatureName> for &'static str
Source§fn from(x: FeatureName) -> &'static str
fn from(x: FeatureName) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for FeatureName
impl FromStr for FeatureName
Source§impl PartialEq for FeatureName
impl PartialEq for FeatureName
Source§impl TryFrom<&str> for FeatureName
impl TryFrom<&str> for FeatureName
impl Copy for FeatureName
impl Eq for FeatureName
impl StructuralPartialEq for FeatureName
Auto Trait Implementations§
impl Freeze for FeatureName
impl RefUnwindSafe for FeatureName
impl Send for FeatureName
impl Sync for FeatureName
impl Unpin for FeatureName
impl UnwindSafe for FeatureName
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> CheckKeyword for T
impl<T> CheckKeyword for T
Source§fn is_keyword(&self) -> bool
fn is_keyword(&self) -> bool
Check if
self is a strict or reserved keyword. Read moreSource§fn keyword_status(&self) -> KeywordStatus
fn keyword_status(&self) -> KeywordStatus
Returns a detailed description of the type of keyword.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, A> EncoderFor<ArrayString<'static, A>> for T
impl<T, A> EncoderFor<ArrayString<'static, A>> for T
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl<T> EncoderForExt for Twhere
T: ?Sized,
impl<T> EncoderForExt for Twhere
T: ?Sized,
Source§fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
Convert this builder into a vector of bytes. This is generally
not the most efficient way to perform serialization.
Source§fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.
Source§fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.
fn measure<F>(&self) -> usizewhere
F: 'static,
Self: EncoderFor<F>,
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.