Struct exc_types::instrument::InstrumentMeta
source · pub struct InstrumentMeta<Num> { /* private fields */ }Expand description
Instrument Meta.
Implementations§
source§impl<Num> InstrumentMeta<Num>
impl<Num> InstrumentMeta<Num>
sourcepub fn new(
name: impl AsRef<str>,
symbol: ExcSymbol,
attrs: Attributes<Num>
) -> Self
pub fn new( name: impl AsRef<str>, symbol: ExcSymbol, attrs: Attributes<Num> ) -> Self
Create a new InstrumentMeta.
sourcepub fn instrument(&self) -> &Instrument
pub fn instrument(&self) -> &Instrument
Get instrument.
sourcepub fn attrs(&self) -> &Attributes<Num>
pub fn attrs(&self) -> &Attributes<Num>
Get attributes.
Trait Implementations§
source§impl<Num: Clone> Clone for InstrumentMeta<Num>
impl<Num: Clone> Clone for InstrumentMeta<Num>
source§fn clone(&self) -> InstrumentMeta<Num>
fn clone(&self) -> InstrumentMeta<Num>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<Num: Debug> Debug for InstrumentMeta<Num>
impl<Num: Debug> Debug for InstrumentMeta<Num>
source§impl<'de, Num> Deserialize<'de> for InstrumentMeta<Num>
impl<'de, Num> Deserialize<'de> for InstrumentMeta<Num>
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
source§impl<Num> Display for InstrumentMeta<Num>where
Num: Display,
impl<Num> Display for InstrumentMeta<Num>where
Num: Display,
source§impl<Num: PartialEq> PartialEq for InstrumentMeta<Num>
impl<Num: PartialEq> PartialEq for InstrumentMeta<Num>
source§fn eq(&self, other: &InstrumentMeta<Num>) -> bool
fn eq(&self, other: &InstrumentMeta<Num>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<Num> Serialize for InstrumentMeta<Num>
impl<Num> Serialize for InstrumentMeta<Num>
impl<Num: Eq> Eq for InstrumentMeta<Num>
impl<Num> StructuralEq for InstrumentMeta<Num>
impl<Num> StructuralPartialEq for InstrumentMeta<Num>
Auto Trait Implementations§
impl<Num> RefUnwindSafe for InstrumentMeta<Num>where
Num: RefUnwindSafe,
impl<Num> Send for InstrumentMeta<Num>where
Num: Send,
impl<Num> Sync for InstrumentMeta<Num>where
Num: Sync,
impl<Num> Unpin for InstrumentMeta<Num>where
Num: Unpin,
impl<Num> UnwindSafe for InstrumentMeta<Num>where
Num: UnwindSafe,
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