[][src]Trait arctk::file::load::Load

pub trait Load where
    Self: Sized
{ pub fn load_data(path: &Path) -> Result<Self, Error>; pub fn load(path: &Path) -> Result<Self, Error> { ... } }

Types implementing this trait can be loaded from a file.

Required methods

pub fn load_data(path: &Path) -> Result<Self, Error>[src]

Deserialize the type from a given file.

Errors

if the target file can not be found, or the read string can not be serialised into an instance of the required type.

Loading content...

Provided methods

pub fn load(path: &Path) -> Result<Self, Error>[src]

Report the opening of a fil (if it is a filepath) and load the data.

Errors

if the target file can not be found, or the read string can not be serialised into an instance of the required type.

Loading content...

Implementors

impl Load for EmitterBuilder[src]

impl Load for AspectRatio[src]

impl Load for FormulaBuilder[src]

impl Load for ProbabilityBuilder[src]

impl Load for CameraBuilder[src]

impl Load for GridBuilder[src]

impl Load for SurfaceBuilder[src]

impl Load for TreeSettings[src]

impl Load for Cube[src]

impl Load for Mesh[src]

impl Load for MeshBuilder[src]

impl Load for GradientBuilder[src]

impl Load for Trans3Builder[src]

impl Load for Range[src]

impl<T> Load for Set<T> where
    T: Deserialize<'de>, 
[src]

impl<T: Load> Load for Redirect<T> where
    T: Deserialize<'de>, 
[src]

impl<T: FromStr> Load for Table<T>[src]

Loading content...