[−][src]Struct ale::AleState
Methods
impl AleState
[src]
pub fn encode_state(&self, buf: &mut [u8])
[src]
Encodes the state as a raw bytestream.
Panics
If the length of buf
is not large enough. Use encode_state_len()
to get the needed length.
pub fn encode_state_len(&self) -> usize
[src]
Returns the length of the buffer needed to encode the state.
Panics
If the C API returns a negative size.
pub fn decode_state(serialized: &[u8]) -> AleState
[src]
Decode state from a raw bytestream.
Panics
If the serialized length is too long to fit into a C integer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AleState
impl !Send for AleState
impl !Sync for AleState
impl Unpin for AleState
impl UnwindSafe for AleState
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,
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.
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>,