kvarn_utils::extensions

Struct PresentExtensions

source
pub struct PresentExtensions { /* private fields */ }
Expand description

The Present extensions parsed from a file containing them.

Implementations§

source§

impl PresentExtensions

source

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.

source

pub fn empty() -> Self

Creates an empty representation of Present extensions

source

pub fn iter_clone(&self) -> PresentExtensionsIter

Gets an iterator of self.

Clones the inner data.