pub struct SBI {
pub data: Vec<u8>,
}
Fields§
§data: Vec<u8>
Implementations§
Source§impl SBI
impl SBI
pub fn new() -> Self
pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, Box<dyn Error>>
pub fn deserialize<T: DeSerialize>(&mut self) -> Result<T, ()>
pub fn serialize<T: Serialize>(&mut self, root: T)
pub fn write_to_path<P: AsRef<Path>>( &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