Trait kerbalobjects::FromBytes
source · pub trait FromBytes {
type Error;
// Required method
fn from_bytes(source: &mut BufferIterator<'_>) -> Result<Self, Self::Error>
where Self: Sized;
}
Expand description
Allows a type to be converted from bytes from a BufferIterator to itself.
Required Associated Types§
Required Methods§
sourcefn from_bytes(source: &mut BufferIterator<'_>) -> Result<Self, Self::Error>where
Self: Sized,
fn from_bytes(source: &mut BufferIterator<'_>) -> Result<Self, Self::Error>where Self: Sized,
Parses a value from the buffer iterator.