pub struct WeightsConfig {
pub public_function: usize,
pub private_function: usize,
pub public_struct: usize,
pub private_struct: usize,
pub impl_block: usize,
pub trait_definition: usize,
pub const_static: usize,
}Expand description
Weight configuration for scoring
Fields§
§public_function: usizeWeight for public functions
private_function: usizeWeight for private functions
public_struct: usizeWeight for public structs
private_struct: usizeWeight for private structs
impl_block: usizeWeight for impl blocks
trait_definition: usizeWeight for trait definitions
const_static: usizeWeight for const/static items
Trait Implementations§
Source§impl Clone for WeightsConfig
impl Clone for WeightsConfig
Source§fn clone(&self) -> WeightsConfig
fn clone(&self) -> WeightsConfig
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 WeightsConfig
impl Debug for WeightsConfig
Source§impl Default for WeightsConfig
impl Default for WeightsConfig
Source§impl<'de> Deserialize<'de> for WeightsConfig
impl<'de> Deserialize<'de> for WeightsConfig
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
Auto Trait Implementations§
impl Freeze for WeightsConfig
impl RefUnwindSafe for WeightsConfig
impl Send for WeightsConfig
impl Sync for WeightsConfig
impl Unpin for WeightsConfig
impl UnwindSafe for WeightsConfig
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