pub struct CodeSizeRuleConfigPatchSet {
pub file: Option<CodeSizeRuleConfigPatch>,
pub function: Option<CodeSizeRuleConfigPatch>,
pub block: Option<CodeSizeRuleConfigPatch>,
}Expand description
Optional rule patch set.
Fields§
§file: Option<CodeSizeRuleConfigPatch>File rule patch.
function: Option<CodeSizeRuleConfigPatch>Function rule patch.
block: Option<CodeSizeRuleConfigPatch>Block rule patch.
Implementations§
Source§impl CodeSizeRuleConfigPatchSet
impl CodeSizeRuleConfigPatchSet
Sourcepub fn get(&self, rule: CodeSizeRuleKind) -> Option<&CodeSizeRuleConfigPatch>
pub fn get(&self, rule: CodeSizeRuleKind) -> Option<&CodeSizeRuleConfigPatch>
Returns patch for one rule.
Trait Implementations§
Source§impl Clone for CodeSizeRuleConfigPatchSet
impl Clone for CodeSizeRuleConfigPatchSet
Source§fn clone(&self) -> CodeSizeRuleConfigPatchSet
fn clone(&self) -> CodeSizeRuleConfigPatchSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CodeSizeRuleConfigPatchSet
impl Debug for CodeSizeRuleConfigPatchSet
Source§impl Default for CodeSizeRuleConfigPatchSet
impl Default for CodeSizeRuleConfigPatchSet
Source§fn default() -> CodeSizeRuleConfigPatchSet
fn default() -> CodeSizeRuleConfigPatchSet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodeSizeRuleConfigPatchSet
impl<'de> Deserialize<'de> for CodeSizeRuleConfigPatchSet
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
impl Eq for CodeSizeRuleConfigPatchSet
Source§impl PartialEq for CodeSizeRuleConfigPatchSet
impl PartialEq for CodeSizeRuleConfigPatchSet
Source§fn eq(&self, other: &CodeSizeRuleConfigPatchSet) -> bool
fn eq(&self, other: &CodeSizeRuleConfigPatchSet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CodeSizeRuleConfigPatchSet
Auto Trait Implementations§
impl Freeze for CodeSizeRuleConfigPatchSet
impl RefUnwindSafe for CodeSizeRuleConfigPatchSet
impl Send for CodeSizeRuleConfigPatchSet
impl Sync for CodeSizeRuleConfigPatchSet
impl Unpin for CodeSizeRuleConfigPatchSet
impl UnsafeUnpin for CodeSizeRuleConfigPatchSet
impl UnwindSafe for CodeSizeRuleConfigPatchSet
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.