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_clone(&self) -> PresentExtensionsIter ⓘ
pub fn iter_clone(&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
source§type Item = PresentArguments
type Item = PresentArguments
The type of the elements being iterated over.
source§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
Auto Trait Implementations§
impl !Freeze for PresentExtensions
impl RefUnwindSafe for PresentExtensions
impl Send for PresentExtensions
impl Sync for PresentExtensions
impl Unpin for PresentExtensions
impl UnwindSafe for PresentExtensions
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)