#[non_exhaustive]pub struct GuardedCascadePerturbationCostModelV0 {
pub add_class: u32,
pub remove_class: u32,
pub toggle_important: u32,
pub increase_specificity: u32,
pub move_layer: u32,
pub move_source_order: u32,
pub toggle_condition: u32,
pub calibration_stage: &'static str,
pub public_safety_claim_ready: bool,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.add_class: u32§remove_class: u32§toggle_important: u32§increase_specificity: u32§move_layer: u32§move_source_order: u32§toggle_condition: u32§calibration_stage: &'static str§public_safety_claim_ready: boolImplementations§
Source§impl GuardedCascadePerturbationCostModelV0
impl GuardedCascadePerturbationCostModelV0
pub const fn unit_cost_v0() -> Self
pub const fn cost(&self, kind: GuardedCascadePerturbationKindV0) -> u32
Trait Implementations§
Source§impl Clone for GuardedCascadePerturbationCostModelV0
impl Clone for GuardedCascadePerturbationCostModelV0
Source§fn clone(&self) -> GuardedCascadePerturbationCostModelV0
fn clone(&self) -> GuardedCascadePerturbationCostModelV0
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 moreimpl Eq for GuardedCascadePerturbationCostModelV0
impl StructuralPartialEq for GuardedCascadePerturbationCostModelV0
Auto Trait Implementations§
impl Freeze for GuardedCascadePerturbationCostModelV0
impl RefUnwindSafe for GuardedCascadePerturbationCostModelV0
impl Send for GuardedCascadePerturbationCostModelV0
impl Sync for GuardedCascadePerturbationCostModelV0
impl Unpin for GuardedCascadePerturbationCostModelV0
impl UnsafeUnpin for GuardedCascadePerturbationCostModelV0
impl UnwindSafe for GuardedCascadePerturbationCostModelV0
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.