pub trait Partition<'a>: Display {
    // Required methods
    fn variables(&self) -> Box<dyn Iterator<Item = &dyn Variable<'a>> + '_>;
    fn get_variable(
        &self,
        key: &'a [u8],
        typ: VarType
    ) -> Option<&dyn Variable<'a>>;
    fn insert_variable(
        &mut self,
        key: &'a [u8],
        value: Cow<'a, [u8]>,
        typ: VarType
    );
    fn remove_variable(&mut self, key: &'a [u8], typ: VarType);
}

Required Methods§

source

fn variables(&self) -> Box<dyn Iterator<Item = &dyn Variable<'a>> + '_>

source

fn get_variable(&self, key: &'a [u8], typ: VarType) -> Option<&dyn Variable<'a>>

source

fn insert_variable(&mut self, key: &'a [u8], value: Cow<'a, [u8]>, typ: VarType)

source

fn remove_variable(&mut self, key: &'a [u8], typ: VarType)

Implementors§

source§

impl<'a> Partition<'a> for apple_nvram::v1v2::Partition<'a>

source§

impl<'a> Partition<'a> for apple_nvram::v3::Partition<'a>