Partition

Trait Partition 

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

Required Methods§

Source

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

Source

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

Source

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

Source

fn remove_variable(&mut self, key: &[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>