[−][src]Struct rust_sbml::Reaction
Reaction object as defined by SBML TODO: implement KineticLaw
Example
use roxmltree; use rust_sbml::Reaction; let reactions: Vec<Reaction> = roxmltree::Document::parse( "<model id='example'><listOfReactions> <reaction id='J1' reversible='false'> <listOfReactants> <speciesReference species='X0' stoichiometry='2' constant='true'/> </listOfReactants></reaction></listOfReactions></model>", ) .unwrap() .descendants() .filter(|n| n.tag_name().name() == "reaction") .map(|n| Reaction::from(n)) .collect(); assert!( reactions.iter().any(|reaction| reaction .list_of_species .0 .iter() .any(|specref| specref.species == "X0")) );
Fields
list_of_species: ListOfSpecies
reversible: bool
compartment: Option<String>
sbo_term: Option<String>
Trait Implementations
impl Debug for Reaction
[src]
impl<'a> From<Node<'a, 'a>> for Reaction
[src]
impl PartialEq<Reaction> for Reaction
[src]
impl StructuralPartialEq for Reaction
[src]
Auto Trait Implementations
impl RefUnwindSafe for Reaction
impl Send for Reaction
impl Sync for Reaction
impl Unpin for Reaction
impl UnwindSafe for Reaction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,