Asset
vectorlib::Asset — fields, methods, parameters and return types.
pub struct AssetA file embedded in the program (LemLib's asset struct).
Methods
Prop
Type
new
pub const fn new(buf: &'static [u8]) -> SelfWrap embedded bytes. Usually created with asset!(crate::asset!).
Parameters
Prop
Type
Returns
Selfbuf
pub const fn buf(&self) -> &'static [u8]The file contents.
Returns
&'static [u8]size
pub const fn size(&self) -> usizeThe file size in bytes.
Returns
usize