Struct pmd_farc::FarcWriter [−][src]
Represent the content to be written to a FARC file. IT can only create hash-indexed file.
Implementations
impl FarcWriter
[src]
pub fn new_from_farc<FT: Read + Seek>(
farc: &Farc<FT>
) -> Result<Self, FarcWriterError>
[src]
farc: &Farc<FT>
) -> Result<Self, FarcWriterError>
Create a new FarcWriter
from an extracted Farc
file
pub fn add_hashed_file(&mut self, hash: u32, content: Vec<u8>)
[src]
Add a file to be written with the given hash (as definied in the [hash_name
] documentation)
pub fn write_hashed<T: Write + Seek>(
&self,
file: &mut T
) -> Result<(), FarcWriterError>
[src]
&self,
file: &mut T
) -> Result<(), FarcWriterError>
Write an hashed Farc file to the given writer, with the content of this struct
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FarcWriter
impl Send for FarcWriter
impl Sync for FarcWriter
impl Unpin for FarcWriter
impl UnwindSafe for FarcWriter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,