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".
Implementations on Foreign Types§
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>,
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>,
Implementors§
impl ReadFrom for ArrayLength
impl ReadFrom for AtmosphereTransformwhere
AtmosphereTransform: ShaderType<ExtraMetadata = StructMetadata<2>>,
Mat4: for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for ChromaticAberrationUniformwhere
ChromaticAberrationUniform: ShaderType<ExtraMetadata = StructMetadata<4>>,
f32: for<'__> ReadFrom,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for ColorGradingUniform
impl ReadFrom for ContactShadowsUniformwhere
ContactShadowsUniform: ShaderType<ExtraMetadata = StructMetadata<4>>,
u32: for<'__> ReadFrom,
f32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for DepthOfFieldUniform
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 ForwardDecalMaterialExtUniformwhere
ForwardDecalMaterialExtUniform: ShaderType<ExtraMetadata = StructMetadata<1>>,
f32: for<'__> ReadFrom,
impl ReadFrom for GlobalsUniformwhere
GlobalsUniform: ShaderType<ExtraMetadata = StructMetadata<3>>,
f32: for<'__> ReadFrom + for<'__> ReadFrom,
u32: for<'__> ReadFrom,
impl ReadFrom for GpuAtmospherewhere
GpuAtmosphere: ShaderType<ExtraMetadata = StructMetadata<4>>,
Vec3: for<'__> ReadFrom,
f32: for<'__> ReadFrom + for<'__> ReadFrom,
Mat4: for<'__> ReadFrom,
impl ReadFrom for GpuAtmosphereSettingswhere
GpuAtmosphereSettings: ShaderType<ExtraMetadata = StructMetadata<12>>,
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,
impl ReadFrom for GpuBinUnpackingMetadatawhere
GpuBinUnpackingMetadata: ShaderType<ExtraMetadata = StructMetadata<4>>,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
[u32; 61]: for<'__> ReadFrom,
impl ReadFrom for GpuClusteredLightwhere
GpuClusteredLight: 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 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 GpuLightswhere
GpuLights: ShaderType<ExtraMetadata = StructMetadata<9>>,
[GpuDirectionalLight; 10]: for<'__> ReadFrom,
Vec4: for<'__> ReadFrom + for<'__> ReadFrom,
UVec4: for<'__> ReadFrom,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
i32: for<'__> ReadFrom,
[GpuRectLight; 8]: for<'__> ReadFrom,
impl ReadFrom for GpuMorphDescriptorwhere
GpuMorphDescriptor: ShaderType<ExtraMetadata = StructMetadata<5>>,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for GpuRectLight
impl ReadFrom for GpuRenderBinnedMeshInstancewhere
GpuRenderBinnedMeshInstance: ShaderType<ExtraMetadata = StructMetadata<2>>,
u32: for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for IVec2
impl ReadFrom for IVec3
impl ReadFrom for IVec4
impl ReadFrom for IndirectBatchSetwhere
IndirectBatchSet: ShaderType<ExtraMetadata = StructMetadata<2>>,
u32: for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for IndirectParametersCpuMetadatawhere
IndirectParametersCpuMetadata: ShaderType<ExtraMetadata = StructMetadata<2>>,
u32: for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for IndirectParametersGpuMetadatawhere
IndirectParametersGpuMetadata: ShaderType<ExtraMetadata = StructMetadata<3>>,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for IndirectParametersIndexedwhere
IndirectParametersIndexed: ShaderType<ExtraMetadata = StructMetadata<5>>,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for IndirectParametersNonIndexedwhere
IndirectParametersNonIndexed: ShaderType<ExtraMetadata = StructMetadata<4>>,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
impl ReadFrom for LatePreprocessWorkItemIndirectParameterswhere
LatePreprocessWorkItemIndirectParameters: ShaderType<ExtraMetadata = StructMetadata<5>>,
u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,
UVec4: for<'__> ReadFrom,
impl ReadFrom for LensDistortionUniform
impl ReadFrom for LightProbesUniform
impl ReadFrom for LinearRgba
Available on crate feature
encase only.