Enum rustfmt_nightly::config::macro_names::MacroSelector
source · pub enum MacroSelector {
Name(MacroName),
All,
}
Expand description
Defines a selector to match against a macro.
Variants§
Trait Implementations§
source§impl Clone for MacroSelector
impl Clone for MacroSelector
source§fn clone(&self) -> MacroSelector
fn clone(&self) -> MacroSelector
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 MacroSelector
impl Debug for MacroSelector
source§impl<'de> Deserialize<'de> for MacroSelector
impl<'de> Deserialize<'de> for MacroSelector
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for MacroSelector
impl Display for MacroSelector
source§impl FromStr for MacroSelector
impl FromStr for MacroSelector
source§impl Hash for MacroSelector
impl Hash for MacroSelector
source§impl Ord for MacroSelector
impl Ord for MacroSelector
source§fn cmp(&self, other: &MacroSelector) -> Ordering
fn cmp(&self, other: &MacroSelector) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<MacroSelector> for MacroSelector
impl PartialEq<MacroSelector> for MacroSelector
source§fn eq(&self, other: &MacroSelector) -> bool
fn eq(&self, other: &MacroSelector) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MacroSelector> for MacroSelector
impl PartialOrd<MacroSelector> for MacroSelector
source§fn partial_cmp(&self, other: &MacroSelector) -> Option<Ordering>
fn partial_cmp(&self, other: &MacroSelector) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for MacroSelector
impl Serialize for MacroSelector
impl Eq for MacroSelector
impl StructuralEq for MacroSelector
impl StructuralPartialEq for MacroSelector
Auto Trait Implementations§
impl RefUnwindSafe for MacroSelector
impl Send for MacroSelector
impl Sync for MacroSelector
impl Unpin for MacroSelector
impl UnwindSafe for MacroSelector
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
Name
: 24 bytesAll
: 0 bytes