pub trait Unwrap<T>: Sized {
    // Required method
    fn unwrap(value: T) -> Result<Self, String>;
}
Expand description

trait that explains how to take struct and unwrap it into a bevy thing. Like From, but returns either the Thing to be unwrapped or a filepath to thing.

Required Methods§

source

fn unwrap(value: T) -> Result<Self, String>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Unwrap<&GeometryFile> for Mesh

source§

impl Unwrap<&GeometryFlag> for Mesh

Implementors§