pub struct FileBytes(pub Vec<u8>);Expand description
A newtype around a Vec<u8>.
Tuple Fields§
§0: Vec<u8>Implementations§
Trait Implementations§
Source§impl<'a, 'vfs, Vfs: WriteSupportingVfs<'vfs> + 'vfs> FromRefForWriter<'a, 'vfs, Vfs> for FileByteswhere
'vfs: 'a,
impl<'a, 'vfs, Vfs: WriteSupportingVfs<'vfs> + 'vfs> FromRefForWriter<'a, 'vfs, Vfs> for FileByteswhere
'vfs: 'a,
Source§impl<'a, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for FileBytes
Available on crate feature async only.
impl<'a, Vfs: WriteSupportingVfsAsync + 'static> FromRefForWriterAsync<'a, Vfs> for FileBytes
Available on crate feature
async only.Source§type Wr = FileBytesRefWr<'a, 'a, Vfs>
type Wr = FileBytesRefWr<'a, 'a, Vfs>
The reference type to cast to.
Source§fn from_ref_for_writer_async(value: &'a Self::Inner) -> Self::Wr
fn from_ref_for_writer_async(value: &'a Self::Inner) -> Self::Wr
Casts the reference to the inner type to a
WriteToAsync
reference type.Source§impl NewtypeToInner for FileBytes
impl NewtypeToInner for FileBytes
Source§impl<'a, Vfs: VfsAsync + 'static> ReadFromAsync<'a, Vfs> for FileBytes
Available on crate feature async only.
impl<'a, Vfs: VfsAsync + 'static> ReadFromAsync<'a, Vfs> for FileBytes
Available on crate feature
async only.Source§impl<'a, Vfs: WriteSupportingVfs<'a>> WriteTo<'a, Vfs> for FileBytes
impl<'a, Vfs: WriteSupportingVfs<'a>> WriteTo<'a, Vfs> for FileBytes
impl Eq for FileBytes
impl StructuralPartialEq for FileBytes
Auto Trait Implementations§
impl Freeze for FileBytes
impl RefUnwindSafe for FileBytes
impl Send for FileBytes
impl Sync for FileBytes
impl Unpin for FileBytes
impl UnwindSafe for FileBytes
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