[−][src]Struct rust_sbml::Species
A species in SBML refers to a pool of entities that
⁻ are considered indistinguishable from each other for the purposes of the model;
- may participate in reactions;
- are located in a specific compartment.
Example
use quick_xml::de::from_str; use rust_sbml::Species; let species: Vec<Species> = from_str( "<species id='Glucose' compartment='cell' initialConcentration='4' hasOnlySubstanceUnits='false' boundaryCondition='false' constant='false'/>" ) .unwrap(); assert_eq!(species[0].id, "Glucose"); assert_eq!(species[0].compartment, "cell"); assert_eq!(species[0].initial_concentration.unwrap() as u8, 4); assert!(!species[0].constant); assert!(!species[0].boundary_condition); assert!(!species[0].has_only_substance_units);
Fields
id: String
compartment: String
initial_concentration: Option<f64>
initial_amount: Option<f64>
substance_units: Option<UnitSIdRef>
has_only_substance_units: bool
boundary_condition: bool
constant: bool
conversion_factor: Option<String>
Trait Implementations
impl Clone for Species
[src]
impl Debug for Species
[src]
impl<'de> Deserialize<'de> for Species
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> ExtractExt<'a> for &'a Species
[src]
impl<'a> ExtractExt<'a> for &'a mut Species
[src]
impl HasMethodsInventory for Species
[src]
type Methods = Pyo3MethodsInventoryForSpecies
impl HasProtoRegistry for Species
[src]
impl IntoPy<Py<PyAny>> for Species
[src]
impl PartialEq<Species> for Species
[src]
impl PyClass for Species
[src]
type Dict = PyClassDummySlot
Specify this class has #[pyclass(dict)]
or not.
type WeakRef = PyClassDummySlot
Specify this class has #[pyclass(weakref)]
or not.
type BaseNativeType = PyAny
The closest native ancestor. This is PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it's PyDict
. Read more
impl PyClassAlloc for Species
[src]
unsafe fn new(py: Python<'_>, subtype: *mut PyTypeObject) -> *mut Self::Layout
[src]
unsafe fn dealloc(py: Python<'_>, self_: *mut Self::Layout)
[src]
impl PyClassSend for Species
[src]
type ThreadChecker = ThreadCheckerStub<Species>
impl PyTypeInfo for Species
[src]
type Type = Species
Type of objects to store in PyObject struct
type BaseType = PyAny
Base class
type Layout = PyCell<Self>
Layout
type BaseLayout = PyCellBase<PyAny>
Layout of Basetype.
type Initializer = PyClassInitializer<Self>
Initializer for layout
type AsRefTarget = PyCell<Self>
Utility type to make Py::as_ref work
const NAME: &'static str
[src]
const MODULE: Option<&'static str>
[src]
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
[src]
fn is_instance(object: &PyAny) -> bool
[src]
fn is_exact_instance(object: &PyAny) -> bool
[src]
impl Serialize for Species
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Species
[src]
Auto Trait Implementations
impl RefUnwindSafe for Species
impl Send for Species
impl Sync for Species
impl Unpin for Species
impl UnwindSafe for Species
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<'a, T> FromPyObject<'a> for T where
T: PyClass + Clone,
[src]
T: PyClass + Clone,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> PyClassAlloc for T where
T: PyTypeInfo + PyClassWithFreeList,
[src]
T: PyTypeInfo + PyClassWithFreeList,
pub unsafe fn new(
py: Python<'_>,
subtype: *mut PyTypeObject
) -> *mut <T as PyTypeInfo>::Layout
[src]
py: Python<'_>,
subtype: *mut PyTypeObject
) -> *mut <T as PyTypeInfo>::Layout
pub unsafe fn dealloc(py: Python<'_>, self_: *mut <T as PyTypeInfo>::Layout)
[src]
impl<T> PyErrArguments for T where
T: IntoPy<Py<PyAny>> + Send + Sync,
[src]
T: IntoPy<Py<PyAny>> + Send + Sync,
impl<T> PyProtoMethods for T where
T: HasProtoRegistry,
[src]
T: HasProtoRegistry,
pub fn async_methods() -> Option<NonNull<PyAsyncMethods>>
[src]
pub fn basic_methods() -> Option<NonNull<PyObjectMethods>>
[src]
pub fn buffer_methods() -> Option<NonNull<PyBufferProcs>>
[src]
pub fn descr_methods() -> Option<NonNull<PyDescrMethods>>
[src]
pub fn gc_methods() -> Option<NonNull<PyGCMethods>>
[src]
pub fn mapping_methods() -> Option<NonNull<PyMappingMethods>>
[src]
pub fn number_methods() -> Option<NonNull<PyNumberMethods>>
[src]
pub fn iter_methods() -> Option<NonNull<PyIterMethods>>
[src]
pub fn sequence_methods() -> Option<NonNull<PySequenceMethods>>
[src]
impl<T> PyTypeObject for T where
T: PyTypeInfo,
[src]
T: PyTypeInfo,
pub fn type_object(py: Python<'_>) -> &PyType
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,