pub struct AllocationInnerSector { /* private fields */ }
Implementations§
Source§impl AllocationInnerSector
impl AllocationInnerSector
Sourcepub fn new() -> AllocationInnerSector
pub fn new() -> AllocationInnerSector
portfolio allocation by sector
pub fn set_long(&mut self, long: AllocationInnerSectorLong)
pub fn with_long(self, long: AllocationInnerSectorLong) -> AllocationInnerSector
pub fn long(&self) -> Option<&AllocationInnerSectorLong>
pub fn reset_long(&mut self)
pub fn set_short(&mut self, short: AllocationInnerSectorShort)
pub fn with_short( self, short: AllocationInnerSectorShort, ) -> AllocationInnerSector
pub fn short(&self) -> Option<&AllocationInnerSectorShort>
pub fn reset_short(&mut self)
Trait Implementations§
Source§impl Debug for AllocationInnerSector
impl Debug for AllocationInnerSector
Source§impl<'de> Deserialize<'de> for AllocationInnerSector
impl<'de> Deserialize<'de> for AllocationInnerSector
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 AllocationInnerSector
impl RefUnwindSafe for AllocationInnerSector
impl Send for AllocationInnerSector
impl Sync for AllocationInnerSector
impl Unpin for AllocationInnerSector
impl UnwindSafe for AllocationInnerSector
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