pub trait MolecularEntityTrait {
Show 18 methods
// Required methods
fn get_chemical_role(&self) -> &[ChemicalRoleProperty];
fn take_chemical_role(&mut self) -> Vec<ChemicalRoleProperty>;
fn get_in_ch_i(&self) -> &[InChIProperty];
fn take_in_ch_i(&mut self) -> Vec<InChIProperty>;
fn get_in_ch_i_key(&self) -> &[InChIKeyProperty];
fn take_in_ch_i_key(&mut self) -> Vec<InChIKeyProperty>;
fn get_iupac_name(&self) -> &[IupacNameProperty];
fn take_iupac_name(&mut self) -> Vec<IupacNameProperty>;
fn get_molecular_formula(&self) -> &[MolecularFormulaProperty];
fn take_molecular_formula(&mut self) -> Vec<MolecularFormulaProperty>;
fn get_molecular_weight(&self) -> &[MolecularWeightProperty];
fn take_molecular_weight(&mut self) -> Vec<MolecularWeightProperty>;
fn get_monoisotopic_molecular_weight(
&self
) -> &[MonoisotopicMolecularWeightProperty];
fn take_monoisotopic_molecular_weight(
&mut self
) -> Vec<MonoisotopicMolecularWeightProperty>;
fn get_potential_use(&self) -> &[PotentialUseProperty];
fn take_potential_use(&mut self) -> Vec<PotentialUseProperty>;
fn get_smiles(&self) -> &[SmilesProperty];
fn take_smiles(&mut self) -> Vec<SmilesProperty>;
}
Expand description
This trait is for properties from https://schema.org/MolecularEntity.
Required Methods§
sourcefn get_chemical_role(&self) -> &[ChemicalRoleProperty]
fn get_chemical_role(&self) -> &[ChemicalRoleProperty]
Get https://schema.org/chemicalRole from Self
as borrowed slice.
sourcefn take_chemical_role(&mut self) -> Vec<ChemicalRoleProperty>
fn take_chemical_role(&mut self) -> Vec<ChemicalRoleProperty>
Take https://schema.org/chemicalRole from Self
as owned vector.
sourcefn get_in_ch_i(&self) -> &[InChIProperty]
fn get_in_ch_i(&self) -> &[InChIProperty]
Get https://schema.org/inChI from Self
as borrowed slice.
sourcefn take_in_ch_i(&mut self) -> Vec<InChIProperty>
fn take_in_ch_i(&mut self) -> Vec<InChIProperty>
Take https://schema.org/inChI from Self
as owned vector.
sourcefn get_in_ch_i_key(&self) -> &[InChIKeyProperty]
fn get_in_ch_i_key(&self) -> &[InChIKeyProperty]
Get https://schema.org/inChIKey from Self
as borrowed slice.
sourcefn take_in_ch_i_key(&mut self) -> Vec<InChIKeyProperty>
fn take_in_ch_i_key(&mut self) -> Vec<InChIKeyProperty>
Take https://schema.org/inChIKey from Self
as owned vector.
sourcefn get_iupac_name(&self) -> &[IupacNameProperty]
fn get_iupac_name(&self) -> &[IupacNameProperty]
Get https://schema.org/iupacName from Self
as borrowed slice.
sourcefn take_iupac_name(&mut self) -> Vec<IupacNameProperty>
fn take_iupac_name(&mut self) -> Vec<IupacNameProperty>
Take https://schema.org/iupacName from Self
as owned vector.
sourcefn get_molecular_formula(&self) -> &[MolecularFormulaProperty]
fn get_molecular_formula(&self) -> &[MolecularFormulaProperty]
Get https://schema.org/molecularFormula from Self
as borrowed slice.
sourcefn take_molecular_formula(&mut self) -> Vec<MolecularFormulaProperty>
fn take_molecular_formula(&mut self) -> Vec<MolecularFormulaProperty>
Take https://schema.org/molecularFormula from Self
as owned vector.
sourcefn get_molecular_weight(&self) -> &[MolecularWeightProperty]
fn get_molecular_weight(&self) -> &[MolecularWeightProperty]
Get https://schema.org/molecularWeight from Self
as borrowed slice.
sourcefn take_molecular_weight(&mut self) -> Vec<MolecularWeightProperty>
fn take_molecular_weight(&mut self) -> Vec<MolecularWeightProperty>
Take https://schema.org/molecularWeight from Self
as owned vector.
sourcefn get_monoisotopic_molecular_weight(
&self
) -> &[MonoisotopicMolecularWeightProperty]
fn get_monoisotopic_molecular_weight( &self ) -> &[MonoisotopicMolecularWeightProperty]
Get https://schema.org/monoisotopicMolecularWeight from Self
as borrowed slice.
sourcefn take_monoisotopic_molecular_weight(
&mut self
) -> Vec<MonoisotopicMolecularWeightProperty>
fn take_monoisotopic_molecular_weight( &mut self ) -> Vec<MonoisotopicMolecularWeightProperty>
Take https://schema.org/monoisotopicMolecularWeight from Self
as owned vector.
sourcefn get_potential_use(&self) -> &[PotentialUseProperty]
fn get_potential_use(&self) -> &[PotentialUseProperty]
Get https://schema.org/potentialUse from Self
as borrowed slice.
sourcefn take_potential_use(&mut self) -> Vec<PotentialUseProperty>
fn take_potential_use(&mut self) -> Vec<PotentialUseProperty>
Take https://schema.org/potentialUse from Self
as owned vector.
sourcefn get_smiles(&self) -> &[SmilesProperty]
fn get_smiles(&self) -> &[SmilesProperty]
Get https://schema.org/smiles from Self
as borrowed slice.
sourcefn take_smiles(&mut self) -> Vec<SmilesProperty>
fn take_smiles(&mut self) -> Vec<SmilesProperty>
Take https://schema.org/smiles from Self
as owned vector.