PSArc-lib 0.0.1

A library to handle writing/parsing/unpacking/packing of Playstation Archive formats
Documentation
1
2
3
4
5
6
7
8
9
use crate::traits::ConvertAsBytes;

/// **ParsableContext** means that the item is parsable from raw bytes to itself with a self context
pub trait ParsableContext {
	/// **Error** should be whatever your return error type is
	type Error;
	/// **parse** converts raw bytes to itself
	fn parse(&mut self, bytes: impl ConvertAsBytes) -> Result<Self, Self::Error> where Self: Sized;
}