Struct ark_api::world::RenderModuleData
source · pub struct RenderModuleData { /* private fields */ }Expand description
Represents raw data that can be attached to a Render component to be rendered by a client-side render module.
Implementations§
source§impl RenderModuleData
impl RenderModuleData
sourcepub fn new(module_dependency_name: &'static str, data: &[u8]) -> Self
pub fn new(module_dependency_name: &'static str, data: &[u8]) -> Self
Creates the RenderModuleData from data.
module_dependency_name is the module name, same as specified in module-dependencies in the Cargo.toml.
sourcepub fn new_dynamic(module_dependency_name: &str, data: &[u8]) -> Self
pub fn new_dynamic(module_dependency_name: &str, data: &[u8]) -> Self
Creates the RenderModuleData from data in a unsafe manner.
module_dependency_name is the module name, same as specified in module-dependencies in the Cargo.toml.
Takes a non-’static str as parameter.
RenderModuleData::new should be preferred over this.
Trait Implementations§
source§impl Clone for RenderModuleData
impl Clone for RenderModuleData
source§fn clone(&self) -> RenderModuleData
fn clone(&self) -> RenderModuleData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RenderModuleData
impl Debug for RenderModuleData
source§impl Hash for RenderModuleData
impl Hash for RenderModuleData
source§impl PartialEq<RenderModuleData> for RenderModuleData
impl PartialEq<RenderModuleData> for RenderModuleData
source§fn eq(&self, other: &RenderModuleData) -> bool
fn eq(&self, other: &RenderModuleData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ValueConverterTrait<RenderModuleData> for ValueConverter
impl ValueConverterTrait<RenderModuleData> for ValueConverter
source§fn into_value(v: RenderModuleData) -> Value
fn into_value(v: RenderModuleData) -> Value
Wraps the passed-in value in a
Value enum.source§fn from_value(v: &Value) -> RenderModuleData
fn from_value(v: &Value) -> RenderModuleData
Extracts the value from a
Value enum.impl Eq for RenderModuleData
impl StructuralEq for RenderModuleData
impl StructuralPartialEq for RenderModuleData
Auto Trait Implementations§
impl RefUnwindSafe for RenderModuleData
impl Send for RenderModuleData
impl Sync for RenderModuleData
impl Unpin for RenderModuleData
impl UnwindSafe for RenderModuleData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more