pub struct AbxParserOwned { /* private fields */ }Expand description
Implementations§
Source§impl AbxParserOwned
impl AbxParserOwned
Sourcepub fn new(data: Vec<u8>) -> Result<Self>
pub fn new(data: Vec<u8>) -> Result<Self>
Takes ownership of data and checks its header.
§Errors
Returns AbxError::UnexpectedEof if data is shorter than 4 bytes, or
AbxError::InvalidMagic if it does not start with MAGIC.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AbxParserOwned
impl RefUnwindSafe for AbxParserOwned
impl Send for AbxParserOwned
impl Sync for AbxParserOwned
impl Unpin for AbxParserOwned
impl UnsafeUnpin for AbxParserOwned
impl UnwindSafe for AbxParserOwned
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