Struct jomini::Ck3Flavor[][src]

pub struct Ck3Flavor(_);
Expand description

The ck3 binary flavor

Implementations

impl Ck3Flavor[src]

pub fn new() -> Self[src]

Creates a new ck3 flavor

Trait Implementations

impl BinaryFlavor for Ck3Flavor[src]

fn visit_f32(&self, data: [u8; 4]) -> f32[src]

Decode a f32 from 4 bytes of data

fn visit_f64(&self, data: [u8; 8]) -> f64[src]

Decode a f64 from 8 bytes of data

impl Debug for Ck3Flavor[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for Ck3Flavor[src]

fn default() -> Ck3Flavor[src]

Returns the “default value” for a type. Read more

impl Encoding for Ck3Flavor[src]

fn decode<'a>(&self, data: &'a [u8]) -> Cow<'a, str>[src]

Decodes bytes into a utf-8 compatible string – allocating if necessary

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.