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 em