Struct kvarn_utils::PresentExtensions
source · [−]pub struct PresentExtensions { /* private fields */ }
Expand description
The Present
extensions parsed from a file containing them.
Implementations
sourceimpl PresentExtensions
impl PresentExtensions
sourcepub fn new(data: Bytes) -> Option<Self>
pub fn new(data: Bytes) -> Option<Self>
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 iter(&self) -> PresentExtensionsIterⓘNotable traits for PresentExtensionsIterimpl Iterator for PresentExtensionsIter type Item = PresentArguments;
pub fn iter(&self) -> PresentExtensionsIterⓘNotable traits for PresentExtensionsIterimpl Iterator for PresentExtensionsIter type Item = PresentArguments;
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
sourceimpl Clone for PresentExtensions
impl Clone for PresentExtensions
sourcefn clone(&self) -> PresentExtensions
fn clone(&self) -> PresentExtensions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PresentExtensions
impl Debug for PresentExtensions
sourceimpl 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?
Auto Trait Implementations
impl RefUnwindSafe for PresentExtensions
impl Send for PresentExtensions
impl Sync for PresentExtensions
impl Unpin for PresentExtensions
impl UnwindSafe for PresentExtensions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more