pub struct SBI {
pub data: Vec<u8>,
}
Fields§
§data: Vec<u8>
Implementations§
Source§impl SBI
impl SBI
pub fn new() -> SBI
pub fn from_path<P>(path: P) -> Result<SBI, Box<dyn Error>>
pub fn deserialize<T>(&mut self) -> Result<T, ()>where
T: DeSerialize,
pub fn serialize<T>(&mut self, root: T)where
T: Serialize,
pub fn write_to_path<P>(&self, path: P) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for SBI
impl RefUnwindSafe for SBI
impl Send for SBI
impl Sync for SBI
impl Unpin for SBI
impl UnwindSafe for SBI
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