pub struct MarginModelHandle(/* private fields */);Expand description
Shared runtime handle for a margin model.
Implementations§
Source§impl MarginModelHandle
impl MarginModelHandle
Sourcepub fn new<T>(model: T) -> Selfwhere
T: MarginModel + 'static,
pub fn new<T>(model: T) -> Selfwhere
T: MarginModel + 'static,
Creates a new MarginModelHandle from a margin model.
Sourcepub fn from_arc(model: Arc<dyn MarginModel>) -> Self
pub fn from_arc(model: Arc<dyn MarginModel>) -> Self
Creates a new MarginModelHandle from an existing atomically reference-counted model.
Trait Implementations§
Source§impl Clone for MarginModelHandle
impl Clone for MarginModelHandle
Source§fn clone(&self) -> MarginModelHandle
fn clone(&self) -> MarginModelHandle
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 MarginModelHandle
impl Debug for MarginModelHandle
Source§impl Default for MarginModelHandle
impl Default for MarginModelHandle
Source§impl From<MarginModelAny> for MarginModelHandle
impl From<MarginModelAny> for MarginModelHandle
Source§fn from(model: MarginModelAny) -> Self
fn from(model: MarginModelAny) -> Self
Converts to this type from the input type.
Source§impl MarginModel for MarginModelHandle
impl MarginModel for MarginModelHandle
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Returns the stable model name used in canonical backtest results.
Auto Trait Implementations§
impl !RefUnwindSafe for MarginModelHandle
impl !UnwindSafe for MarginModelHandle
impl Freeze for MarginModelHandle
impl Send for MarginModelHandle
impl Sync for MarginModelHandle
impl Unpin for MarginModelHandle
impl UnsafeUnpin for MarginModelHandle
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