Struct kvarn::prelude::utils::PresentExtensions
source · pub struct PresentExtensions { /* private fields */ }
Expand description
The Present
extensions parsed from a file containing them.
Implementations§
source§impl PresentExtensions
impl PresentExtensions
sourcepub fn new(data: Bytes) -> Option<PresentExtensions>
pub fn new(data: Bytes) -> Option<PresentExtensions>
Parses a file to create a representation of the Present
extensions in it.
data
should start with PRESENT_INTERNAL_PREFIX
, as all present extension files should.
sourcepub fn empty() -> PresentExtensions
pub fn empty() -> PresentExtensions
Creates an empty representation of Present
extensions
sourcepub fn iter(&self) -> PresentExtensionsIter ⓘ
pub fn iter(&self) -> PresentExtensionsIter ⓘ
Gets an iterator of self.
Clones the inner data.
sourcepub fn data_start(&self) -> usize
pub fn data_start(&self) -> usize
Returns the start of the document data, after all extensions and their arguments.
Trait Implementations§
source§impl Clone for PresentExtensions
impl Clone for PresentExtensions
source§fn clone(&self) -> PresentExtensions
fn clone(&self) -> PresentExtensions
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 PresentExtensions
impl Debug for PresentExtensions
source§impl IntoIterator for PresentExtensions
impl IntoIterator for PresentExtensions
§type Item = PresentArguments
type Item = PresentArguments
The type of the elements being iterated over.
§type IntoIter = PresentExtensionsIter
type IntoIter = PresentExtensionsIter
Which kind of iterator are we turning this into?
source§fn into_iter(self) -> <PresentExtensions as IntoIterator>::IntoIter
fn into_iter(self) -> <PresentExtensions as IntoIterator>::IntoIter
Creates an iterator from a value. Read more