Skip to main content

ParamLike

Trait ParamLike 

Source
pub trait ParamLike {
    // Required methods
    fn name(&self) -> &str;
    fn value(&self) -> ValueRef<'_>;
    fn accession(&self) -> Option<AccessionIntCode>;
    fn controlled_vocabulary(&self) -> Option<ControlledVocabulary>;
    fn unit(&self) -> Unit;

    // Provided methods
    fn is_ms(&self) -> bool { ... }
    fn parse<T: FromStr>(&self) -> Result<T, T::Err> { ... }
    fn is_controlled(&self) -> bool { ... }
    fn curie(&self) -> Option<CURIE> { ... }
}
Expand description

Describe a controlled vocabulary parameter or a user-defined parameter

Required Methods§

Provided Methods§

Source

fn is_ms(&self) -> bool

Source

fn parse<T: FromStr>(&self) -> Result<T, T::Err>

Source

fn is_controlled(&self) -> bool

Source

fn curie(&self) -> Option<CURIE>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§