Skip to main content

FromBlock

Trait FromBlock 

Source
pub trait FromBlock: Sized {
    // Required method
    fn from_block(block: VmfBlock, ctx: &mut ParseCtx) -> Self;
}
Expand description

Converts a VmfBlock into a typed structure, recording warnings in ParseCtx.

Required Methods§

Source

fn from_block(block: VmfBlock, ctx: &mut ParseCtx) -> Self

Parses block, substituting defaults and logging warnings for missing or invalid values.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§