Struct quantmath::data::fixings::RcFixingTable [−][src]
pub struct RcFixingTable(_);
Create a new type for a Rc
Methods
impl RcFixingTable
[src]
impl RcFixingTable
pub fn new(table: Arc<FixingTable>) -> RcFixingTable
[src]
pub fn new(table: Arc<FixingTable>) -> RcFixingTable
Methods from Deref<Target = FixingTable>
pub fn get(&self, id: &str, date_time: DateTime) -> Result<Option<f64>, Error>
[src]
pub fn get(&self, id: &str, date_time: DateTime) -> Result<Option<f64>, Error>
Tries to get a fixing for the given instrument and date. Returns None if it was absent today, or an error if it was absent in the past.
pub fn get_optional(&self, id: &str, date_time: DateTime) -> Option<f64>
[src]
pub fn get_optional(&self, id: &str, date_time: DateTime) -> Option<f64>
Tries to get a fixing for the given instrument and date. Returns None if the fixing is not found.
pub fn get_fixings(&self, id: &str) -> Option<&Fixings>
[src]
pub fn get_fixings(&self, id: &str) -> Option<&Fixings>
Tries to get an entire fixing curve by id. Return None if there is none.
pub fn fixings_known_until(&self) -> Date
[src]
pub fn fixings_known_until(&self) -> Date
Gets the date to which fixings are known. Fixings on this date may or may not be known.
Trait Implementations
impl Clone for RcFixingTable
[src]
impl Clone for RcFixingTable
fn clone(&self) -> RcFixingTable
[src]
fn clone(&self) -> RcFixingTable
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for RcFixingTable
[src]
impl Debug for RcFixingTable
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Deref for RcFixingTable
[src]
impl Deref for RcFixingTable
type Target = FixingTable
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl Serialize for RcFixingTable
[src]
impl Serialize for RcFixingTable
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for RcFixingTable
[src]
impl<'de> Deserialize<'de> for RcFixingTable
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
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 Send for RcFixingTable
impl Send for RcFixingTable
impl Sync for RcFixingTable
impl Sync for RcFixingTable