Struct serbuffer_gen::Codegen[][src]

pub struct Codegen { /* fields omitted */ }

code gen struct Demo { timestamp: u64 }

Implementations

impl Codegen[src]

pub fn new(out_dir: impl AsRef<Path>, schema: &str) -> Self[src]

pub fn field(&mut self, name: &str, data_type: DataType) -> &mut Self[src]

pub fn gen(&self) -> Result<()>[src]

Trait Implementations

impl Default for Codegen[src]

Auto Trait Implementations

impl RefUnwindSafe for Codegen

impl Send for Codegen

impl Sync for Codegen

impl Unpin for Codegen

impl UnwindSafe for Codegen

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.