Struct forensic_rs::bitacora::Bitacora
source · pub struct Bitacora<T: Default> {
pub data: T,
pub errors: BTreeMap<String, Vec<(String, ForensicError)>>,
}Fields§
§data: T§errors: BTreeMap<String, Vec<(String, ForensicError)>>Implementations§
source§impl<T: Default> Bitacora<T>
impl<T: Default> Bitacora<T>
pub fn new(data: T) -> Self
pub fn error(parser: &str, element: String, err: ForensicError) -> Self
pub fn copy_errors( &mut self, errors: &mut BTreeMap<String, Vec<(String, ForensicError)>> )
pub fn add_error(&mut self, parser: &str, element: String, err: ForensicError)
pub fn add_errors(&mut self, parser: &str, errors: Vec<(String, ForensicError)>)
pub fn copy(&mut self, other: &Self)
pub fn join(&mut self, other: Self)
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Bitacora<T>
impl<T> Send for Bitacora<T>where T: Send,
impl<T> Sync for Bitacora<T>where T: Sync,
impl<T> Unpin for Bitacora<T>where T: Unpin,
impl<T> !UnwindSafe for Bitacora<T>
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