pub trait ReadFrom {
// Required method
fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef;
}Required Methods§
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<T> ReadFrom for [T]where
T: CreateFrom + ReadFrom,
[T]: Truncate + Length + Extend<T> + ShaderType<ExtraMetadata = ArrayMetadata>,
&'a mut [T]: for<'a> IntoIterator<Item = &'a mut T>,
impl<T> ReadFrom for [T]where
T: CreateFrom + ReadFrom,
[T]: Truncate + Length + Extend<T> + ShaderType<ExtraMetadata = ArrayMetadata>,
&'a mut [T]: for<'a> IntoIterator<Item = &'a mut T>,
Source§impl<T> ReadFrom for LinkedList<T>where
T: CreateFrom + ReadFrom,
LinkedList<T>: Truncate + Length + Extend<T> + ShaderType<ExtraMetadata = ArrayMetadata>,
&'a mut LinkedList<T>: for<'a> IntoIterator<Item = &'a mut T>,
impl<T> ReadFrom for LinkedList<T>where
T: CreateFrom + ReadFrom,
LinkedList<T>: Truncate + Length + Extend<T> + ShaderType<ExtraMetadata = ArrayMetadata>,
&'a mut LinkedList<T>: for<'a> IntoIterator<Item = &'a mut T>,
Source§impl<T> ReadFrom for VecDeque<T>where
T: CreateFrom + ReadFrom,
VecDeque<T>: Truncate + Length + Extend<T> + ShaderType<ExtraMetadata = ArrayMetadata>,
&'a mut VecDeque<T>: for<'a> IntoIterator<Item = &'a mut T>,
impl<T> ReadFrom for VecDeque<T>where
T: CreateFrom + ReadFrom,
VecDeque<T>: Truncate + Length + Extend<T> + ShaderType<ExtraMetadata = ArrayMetadata>,
&'a mut VecDeque<T>: for<'a> IntoIterator<Item = &'a mut T>,
Implementors§
impl ReadFrom for OrderIndependentTransparencySettingswhere
OrderIndependentTransparencySettings: ShaderType<ExtraMetadata = StructMetadata<2>>,
i32: for<'__> ReadFrom,
f32: for<'__> ReadFrom,
impl ReadFrom for PreviousViewDatawhere
PreviousViewData: ShaderType<ExtraMetadata = StructMetadata<5>>,
Mat4: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for RenderClusteredDecal
impl ReadFrom for ForwardDecalMaterialExtUniformwhere
ForwardDecalMaterialExtUniform: ShaderType<ExtraMetadata = StructMetadata<1>>,
f32: for<'__> ReadFrom,
impl ReadFrom for PbrDeferredLightingDepthIdwhere
PbrDeferredLightingDepthId: ShaderType<ExtraMetadata = StructMetadata<1>>,
u32: for<'__> ReadFrom,
impl ReadFrom for DownsamplingConstantswhere
DownsamplingConstants: ShaderType<ExtraMetadata = StructMetadata<3>>,
u32: for<'__> ReadFrom + for<'__> ReadFrom,
Vec2: for<'__> ReadFrom,
impl ReadFrom for FilteringConstantswhere
FilteringConstants: ShaderType<ExtraMetadata = StructMetadata<4>>,
f32: for<'__> ReadFrom + for<'__> ReadFrom,
u32: for<'__> ReadFrom,
UVec2: for<'__> ReadFrom,
impl ReadFrom for AtmosphereTransform
impl ReadFrom for GpuAtmospherewhere
GpuAtmosphere: ShaderType<ExtraMetadata = StructMetadata<3>>,
Vec3: for<'__> ReadFrom,
f32: for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for EnvironmentMapUniformwhere
EnvironmentMapUniform: ShaderType<ExtraMetadata = StructMetadata<1>>,
Mat4: for<'__> ReadFrom,
impl ReadFrom for GpuAtmosphereSettingswhere
GpuAtmosphereSettings: ShaderType<ExtraMetadata = StructMetadata<13>>,
UVec2: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
UVec3: for<'__> ReadFrom,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
f32: for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for GpuClusterableObjectwhere
GpuClusterableObject: ShaderType<ExtraMetadata = StructMetadata<11>>,
Vec4: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
u32: for<'__> ReadFrom + for<'__> ReadFrom,
f32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for GpuClusterableObjectsStoragewhere
GpuClusterableObjectsStorage: ShaderType<ExtraMetadata = StructMetadata<1>>,
Vec<GpuClusterableObject>: for<'__> ReadFrom,
impl ReadFrom for GpuClusterableObjectsUniformwhere
GpuClusterableObjectsUniform: ShaderType<ExtraMetadata = StructMetadata<1>>,
Box<[GpuClusterableObject; 204]>: for<'__> ReadFrom,
impl ReadFrom for GpuDirectionalCascadewhere
GpuDirectionalCascade: ShaderType<ExtraMetadata = StructMetadata<3>>,
Mat4: for<'__> ReadFrom,
f32: for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for GpuDirectionalLightwhere
GpuDirectionalLight: ShaderType<ExtraMetadata = StructMetadata<13>>,
[GpuDirectionalCascade; 4]: for<'__> ReadFrom,
Vec4: for<'__> ReadFrom,
Vec3: for<'__> ReadFrom,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
f32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for GpuFog
impl ReadFrom for GpuLights
impl ReadFrom for LightProbesUniform
impl ReadFrom for MeshCullingDatawhere
MeshCullingData: ShaderType<ExtraMetadata = StructMetadata<2>>,
Vec4: for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for MeshInputUniformwhere
MeshInputUniform: ShaderType<ExtraMetadata = StructMetadata<12>>,
[Vec4; 3]: for<'__> ReadFrom,
UVec2: for<'__> ReadFrom,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for MeshUniformwhere
MeshUniform: ShaderType<ExtraMetadata = StructMetadata<11>>,
[Vec4; 3]: for<'__> ReadFrom + for<'__> ReadFrom,
[Vec4; 2]: for<'__> ReadFrom,
f32: for<'__> ReadFrom,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
UVec2: for<'__> ReadFrom,
impl ReadFrom for ScreenSpaceReflectionsUniformwhere
ScreenSpaceReflectionsUniform: ShaderType<ExtraMetadata = StructMetadata<6>>,
f32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for StandardMaterialUniformwhere
StandardMaterialUniform: ShaderType<ExtraMetadata = StructMetadata<23>>,
Vec4: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
Mat3: for<'__> ReadFrom,
Vec3: for<'__> ReadFrom,
f32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
Vec2: for<'__> ReadFrom,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for AtomicI32
impl ReadFrom for AtomicU32
impl ReadFrom for DepthOfFieldUniform
impl ReadFrom for ChromaticAberrationUniformwhere
ChromaticAberrationUniform: ShaderType<ExtraMetadata = StructMetadata<4>>,
f32: for<'__> ReadFrom,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for IVec2
impl ReadFrom for IVec3
impl ReadFrom for IVec4
impl ReadFrom for LinearRgba
Available on crate feature
encase only.