kvarn::prelude::internals

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<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.

source

pub fn empty() -> PresentExtensions

<