pub struct Section { /* private fields */ }Implementations§
Source§impl Section
impl Section
pub fn new(cid: Cid, pos: u64, len: usize) -> Self
pub fn read_data<T>(&self, seeker: T) -> Result<Vec<u8>, CarSplitterError>
pub fn ipld<T>(&mut self, seeker: T) -> Result<Ipld, CarSplitterError>
pub fn cid(&self) -> Cid
pub fn pos(&self) -> u64
pub fn len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
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