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;

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