pub trait CreateFrom: Sized {
// Required method
fn create_from<B>(reader: &mut Reader<B>) -> Self
where B: BufferRef;
}
Required Methods§
fn create_from<B>(reader: &mut Reader<B>) -> Selfwhere
B: BufferRef,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl CreateFrom for Option<NonZeroI32>
impl CreateFrom for Option<NonZeroI32>
fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for Option<NonZeroU32>
impl CreateFrom for Option<NonZeroU32>
fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for f32
impl CreateFrom for f32
fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for i32
impl CreateFrom for i32
fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for u32
impl CreateFrom for u32
fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for Mat3where
Self: FromMatrixParts<f32, 3, 3> + ShaderType<ExtraMetadata = MatrixMetadata>,
f32: MatrixScalar + CreateFrom,
Available on crate feature glam
only.
impl CreateFrom for Mat3where
Self: FromMatrixParts<f32, 3, 3> + ShaderType<ExtraMetadata = MatrixMetadata>,
f32: MatrixScalar + CreateFrom,
Available on crate feature
glam
only.fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for Mat2where
Self: FromMatrixParts<f32, 2, 2> + ShaderType<ExtraMetadata = MatrixMetadata>,
f32: MatrixScalar + CreateFrom,
Available on crate feature glam
only.
impl CreateFrom for Mat2where
Self: FromMatrixParts<f32, 2, 2> + ShaderType<ExtraMetadata = MatrixMetadata>,
f32: MatrixScalar + CreateFrom,
Available on crate feature
glam
only.fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for Mat4where
Self: FromMatrixParts<f32, 4, 4> + ShaderType<ExtraMetadata = MatrixMetadata>,
f32: MatrixScalar + CreateFrom,
Available on crate feature glam
only.
impl CreateFrom for Mat4where
Self: FromMatrixParts<f32, 4, 4> + ShaderType<ExtraMetadata = MatrixMetadata>,
f32: MatrixScalar + CreateFrom,
Available on crate feature
glam
only.fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for Vec4
Available on crate feature glam
only.
impl CreateFrom for Vec4
Available on crate feature
glam
only.fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for Vec2
Available on crate feature glam
only.
impl CreateFrom for Vec2
Available on crate feature
glam
only.fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for Vec3
Available on crate feature glam
only.
impl CreateFrom for Vec3
Available on crate feature
glam
only.fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for IVec2
Available on crate feature glam
only.
impl CreateFrom for IVec2
Available on crate feature
glam
only.fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for IVec3
Available on crate feature glam
only.
impl CreateFrom for IVec3
Available on crate feature
glam
only.fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for IVec4
Available on crate feature glam
only.
impl CreateFrom for IVec4
Available on crate feature
glam
only.fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for UVec2
Available on crate feature glam
only.
impl CreateFrom for UVec2
Available on crate feature
glam
only.fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for UVec3
Available on crate feature glam
only.
impl CreateFrom for UVec3
Available on crate feature
glam
only.fn create_from<B: BufferRef>(reader: &mut Reader<B>) -> Self
Source§impl CreateFrom for UVec4
Available on crate feature glam
only.
impl CreateFrom for UVec4
Available on crate feature
glam
only.