[][src]Struct ale::AleState

pub struct AleState { /* fields omitted */ }

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

impl Drop for AleState[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.