pub struct RiskLimit { /* private fields */ }Expand description
A simple numeric risk limit threshold.
Implementations§
Source§impl RiskLimit
impl RiskLimit
Sourcepub fn with_level(self, level: RiskLevel) -> Self
pub fn with_level(self, level: RiskLevel) -> Self
Sets descriptive risk level vocabulary.
Sourcepub const fn measure(&self) -> &RiskMeasure
pub const fn measure(&self) -> &RiskMeasure
Returns the risk measure.
Trait Implementations§
impl StructuralPartialEq for RiskLimit
Auto Trait Implementations§
impl Freeze for RiskLimit
impl RefUnwindSafe for RiskLimit
impl Send for RiskLimit
impl Sync for RiskLimit
impl Unpin for RiskLimit
impl UnsafeUnpin for RiskLimit
impl UnwindSafe for RiskLimit
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