Trait encase::internal::CreateFrom

source ·
pub trait CreateFrom: Sized {
    // Required method
    fn create_from<B>(reader: &mut Reader<B>) -> Self
       where B: BufferRef;
}

Required Methods§

source

fn create_from<B>(reader: &mut Reader<B>) -> Self
where B: BufferRef,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl CreateFrom for Option<NonZeroI32>

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for Option<NonZeroU32>

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for f32

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for i32

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for u32

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for Mat3
where Self: FromMatrixParts<f32, 3, 3> + ShaderType<ExtraMetadata = MatrixMetadata>, f32: MatrixScalar + CreateFrom,

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for Mat2
where Self: FromMatrixParts<f32, 2, 2> + ShaderType<ExtraMetadata = MatrixMetadata>, f32: MatrixScalar + CreateFrom,

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for Mat4
where Self: FromMatrixParts<f32, 4, 4> + ShaderType<ExtraMetadata = MatrixMetadata>, f32: MatrixScalar + CreateFrom,

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for Vec4

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for Vec2

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for Vec3

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for IVec2

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for IVec3

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for IVec4

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for UVec2

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for UVec3

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for UVec4

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for Wrapping<i32>

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for Wrapping<u32>

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for AtomicI32

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl CreateFrom for AtomicU32

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl<T> CreateFrom for Cow<'_, T>
where T: CreateFrom + ?Sized + ToOwned<Owned = T>,

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl<T> CreateFrom for [T]
where T: CreateFrom, Self: FromIterator<T> + ShaderType<ExtraMetadata = ArrayMetadata>,

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl<T> CreateFrom for Box<T>
where T: CreateFrom + ?Sized,

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl<T> CreateFrom for LinkedList<T>
where T: CreateFrom, Self: FromIterator<T> + ShaderType<ExtraMetadata = ArrayMetadata>,

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl<T> CreateFrom for VecDeque<T>
where T: CreateFrom, Self: FromIterator<T> + ShaderType<ExtraMetadata = ArrayMetadata>,

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl<T> CreateFrom for Rc<T>
where T: CreateFrom + ?Sized,

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl<T> CreateFrom for Arc<T>
where T: CreateFrom + ?Sized,

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl<T> CreateFrom for Vec<T>
where T: CreateFrom, Self: FromIterator<T> + ShaderType<ExtraMetadata = ArrayMetadata>,

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl<T> CreateFrom for Cell<T>
where T: CreateFrom + ?Sized + Copy,

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

source§

impl<T: CreateFrom, const N: usize> CreateFrom for [T; N]
where Self: ShaderType<ExtraMetadata = ArrayMetadata>,

source§

fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self

Implementors§