pub struct FormatRule {
pub code: &'static str,
pub name: &'static str,
pub description: &'static str,
pub category: &'static str,
pub groups: Vec<&'static str>,
pub fixable: bool,
}Expand description
One formatting rule this formatter applies.
Fields§
§code: &'static str§name: &'static str§description: &'static str§category: &'static str§groups: Vec<&'static str>§fixable: boolTrait Implementations§
Source§impl Clone for FormatRule
impl Clone for FormatRule
Source§impl Debug for FormatRule
impl Debug for FormatRule
Source§impl Deserialize<'static> for FormatRule
impl Deserialize<'static> for FormatRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FormatRule
Source§impl PartialEq for FormatRule
impl PartialEq for FormatRule
Source§impl Serialize for FormatRule
impl Serialize for FormatRule
impl StructuralPartialEq for FormatRule
Auto Trait Implementations§
impl Forget for FormatRule
impl Freeze for FormatRule
impl Move for FormatRule
impl RefUnwindSafe for FormatRule
impl Send for FormatRule
impl Sync for FormatRulewhere
RawVecInner: Sync,
impl Unpin for FormatRule
impl UnsafeUnpin for FormatRulewhere
&'static str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<&'static str>: UnsafeUnpin,
impl UnwindSafe for FormatRule
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§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.