pub trait Parsable {
type Error;
// Required method
fn parse(bytes: impl ConvertAsBytes) -> Result<Self, Self::Error>
where Self: Sized;
}
Expand description
Parsable means that the item is parsable from raw bytes to itself
Required Associated Types§
Required Methods§
Implementors§
Source§impl Parsable for PSArchiveCompression
Should parse 4 bytes, any more or less will result in an error
impl Parsable for PSArchiveCompression
Should parse 4 bytes, any more or less will result in an error
Source§impl Parsable for PSArchiveFlags
Should parse 4 bytes, any more or less will result in an error
impl Parsable for PSArchiveFlags
Should parse 4 bytes, any more or less will result in an error