Struct unixfs_v1::walk::FileSegment [−][src]
pub struct FileSegment<'a> { /* fields omitted */ }
Expand description
A slice of bytes of a possibly multi-block file. The slice can be accessed via as_bytes()
or
AsRef<[u8]>::as_ref()
.
Implementations
Returns true
if this is the first block in the file, false
otherwise.
Note: the first block can also be the last one.
Returns true
if this is the last block in the file, false
otherwise.
Note: the last block can also be the first one.