pub struct BinaryDataArray { /* private fields */ }Expand description
BinaryDataArray represents the
Implementations§
Source§impl BinaryDataArray
impl BinaryDataArray
Sourcepub fn array_type(&self) -> Option<BinaryDataArrayType>
pub fn array_type(&self) -> Option<BinaryDataArrayType>
Return the BinaryDataArrayType (e.g. m/z array, intensity array) based on the CV params stored within.
Sourcepub fn binary_type(&self) -> BinaryDataType
pub fn binary_type(&self) -> BinaryDataType
Return the BinaryDataType (e.g. f64, f32, …) based on the CV params stored within.
Sourcepub fn compression(&self) -> Compression
pub fn compression(&self) -> Compression
Return the Compression (e.g. None, Z-lib, …) used to compress the binary data, based on the CV params stored within.
Sourcepub fn array_length(&self) -> Option<u64>
pub fn array_length(&self) -> Option<u64>
Return the number of elements in the array.
Sourcepub fn encoded_length(&self) -> Option<u64>
pub fn encoded_length(&self) -> Option<u64>
Return the number of bytes needed to store the array (in the specified data type, and after compression).
Sourcepub fn offset(&self) -> Option<u64>
pub fn offset(&self) -> Option<u64>
Return the file offset depicting where the array is stored.
Sourcepub fn is_data_external(&self) -> bool
pub fn is_data_external(&self) -> bool
Return true if the array is stored in an external file (e.g. ibd). Always true for imzML files.
Trait Implementations§
Source§impl Clone for BinaryDataArray
impl Clone for BinaryDataArray
Source§impl Debug for BinaryDataArray
impl Debug for BinaryDataArray
Source§impl Default for BinaryDataArray
impl Default for BinaryDataArray
Source§impl HasCVParams for BinaryDataArray
impl HasCVParams for BinaryDataArray
Source§fn add_cv_param(&mut self, param: CVParam)
fn add_cv_param(&mut self, param: CVParam)
Add a cvParam to the tag.
Source§fn cv_params(&self) -> &Vec<CVParam>
fn cv_params(&self) -> &Vec<CVParam>
Return access to the list of cvParams currently associated with the tag.
Source§fn cv_params_mut(&mut self) -> &mut Vec<CVParam>
fn cv_params_mut(&mut self) -> &mut Vec<CVParam>
Return mutable access to the list of cvParams currently associated with the tag.
Source§fn add_user_param(&mut self, param: UserParam)
fn add_user_param(&mut self, param: UserParam)
Add a userParam to the tag.
Source§fn user_params(&self) -> &Vec<UserParam>
fn user_params(&self) -> &Vec<UserParam>
Return access to all userParams.
Source§fn clone_params(&self) -> Vec<CVParam>
fn clone_params(&self) -> Vec<CVParam>
Clone the current parameters into a
Vec<CVParam<'a>>.Source§fn remove_children_of(&mut self, ontology: &Ontology, parent_id: &str)
fn remove_children_of(&mut self, ontology: &Ontology, parent_id: &str)
Remove any cvParam which has a term that is the child of the of the supplied term (parent_id).
Source§fn children_of(&self, ontology: &Ontology, parent_id: &str) -> Vec<&CVParam>
fn children_of(&self, ontology: &Ontology, parent_id: &str) -> Vec<&CVParam>
Return all cvParams which have a term that is the child of the of the supplied term (parent_id).
Source§impl HasParamGroupRefs for BinaryDataArray
impl HasParamGroupRefs for BinaryDataArray
Source§fn add_param_group_ref(&mut self, param_group_ref: ReferenceableParamGroupRef)
fn add_param_group_ref(&mut self, param_group_ref: ReferenceableParamGroupRef)
Add a referenceableParamGroupRef to the tag.
Source§fn param_group_refs(&self) -> &Vec<ReferenceableParamGroupRef>
fn param_group_refs(&self) -> &Vec<ReferenceableParamGroupRef>
Returns a reference to list of referenceableParamGroupRef
Source§fn clone_params_with_groups(&self) -> Vec<CVParam>
fn clone_params_with_groups(&self) -> Vec<CVParam>
Returns a Vec containing cloned versions of all cvParams
Source§impl MzMLTag for BinaryDataArray
impl MzMLTag for BinaryDataArray
Source§fn parse_start_tag<B: BufRead>(
parser: &mut MzMLReader<B>,
start_event: &BytesStart<'_>,
) -> Result<Option<Self>, FatalParseError>where
Self: Sized,
fn parse_start_tag<B: BufRead>(
parser: &mut MzMLReader<B>,
start_event: &BytesStart<'_>,
) -> Result<Option<Self>, FatalParseError>where
Self: Sized,
Parse the start tag (capture any attributes, noting any missing or extra as errors).
Source§fn parse_xml<B: BufRead>(
&mut self,
parser: &mut MzMLReader<B>,
buffer: &mut Vec<u8>,
) -> Result<(), FatalParseError>
fn parse_xml<B: BufRead>( &mut self, parser: &mut MzMLReader<B>, buffer: &mut Vec<u8>, ) -> Result<(), FatalParseError>
Parse the child tags (if necessary). This is only called if there are expected to be child tags.
Auto Trait Implementations§
impl Freeze for BinaryDataArray
impl RefUnwindSafe for BinaryDataArray
impl Send for BinaryDataArray
impl Sync for BinaryDataArray
impl Unpin for BinaryDataArray
impl UnwindSafe for BinaryDataArray
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