Struct nifti::extension::ExtensionSequence
source · pub struct ExtensionSequence { /* private fields */ }
Expand description
Data type for aggregating the extender code and all extensions.
Implementations§
source§impl ExtensionSequence
impl ExtensionSequence
sourcepub fn new(extender: Extender, extensions: Vec<Extension>) -> Self
pub fn new(extender: Extender, extensions: Vec<Extension>) -> Self
Provide a public constructor
sourcepub fn from_reader<S, E>(
extender: Extender,
source: ByteOrdered<S, E>,
len: usize
) -> Result<Self>where
S: Read,
E: Endian,
pub fn from_reader<S, E>( extender: Extender, source: ByteOrdered<S, E>, len: usize ) -> Result<Self>where S: Read, E: Endian,
Read a sequence of extensions from a source, up until len
bytes.
sourcepub fn bytes_on_disk(&self) -> usize
pub fn bytes_on_disk(&self) -> usize
Return the number of bytes the extensions take on disk
Trait Implementations§
source§impl Clone for ExtensionSequence
impl Clone for ExtensionSequence
source§fn clone(&self) -> ExtensionSequence
fn clone(&self) -> ExtensionSequence
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExtensionSequence
impl Debug for ExtensionSequence
source§impl<'a> IntoIterator for &'a ExtensionSequence
impl<'a> IntoIterator for &'a ExtensionSequence
source§impl IntoIterator for ExtensionSequence
impl IntoIterator for ExtensionSequence
source§impl PartialEq<ExtensionSequence> for ExtensionSequence
impl PartialEq<ExtensionSequence> for ExtensionSequence
source§fn eq(&self, other: &ExtensionSequence) -> bool
fn eq(&self, other: &ExtensionSequence) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExtensionSequence
Auto Trait Implementations§
impl RefUnwindSafe for ExtensionSequence
impl Send for ExtensionSequence
impl Sync for ExtensionSequence
impl Unpin for ExtensionSequence
impl UnwindSafe for ExtensionSequence
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
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.