pub struct VirtualPsb { /* private fields */ }
Implementations§
Source§impl VirtualPsb
impl VirtualPsb
pub fn new( header: PsbHeader, resources: Vec<Vec<u8>>, extra: Vec<Vec<u8>>, root: PsbObject, ) -> Self
pub fn header(&self) -> PsbHeader
pub fn resources(&self) -> &Vec<Vec<u8>>
pub fn resources_mut(&mut self) -> &mut Vec<Vec<u8>>
pub fn extra(&self) -> &Vec<Vec<u8>>
pub fn extra_mut(&mut self) -> &mut Vec<Vec<u8>>
pub fn root(&self) -> &PsbObject
pub fn root_mut(&mut self) -> &mut PsbObject
pub fn set_root(&mut self, root: PsbObject)
pub fn unwrap(self) -> (PsbHeader, Vec<Vec<u8>>, Vec<Vec<u8>>, PsbObject)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VirtualPsb
impl RefUnwindSafe for VirtualPsb
impl Send for VirtualPsb
impl Sync for VirtualPsb
impl Unpin for VirtualPsb
impl UnwindSafe for VirtualPsb
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more