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
sourceimpl 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
sourceimpl Clone for RenderModuleData
impl Clone for RenderModuleData
sourcefn clone(&self) -> RenderModuleData
fn clone(&self) -> RenderModuleData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RenderModuleData
impl Debug for RenderModuleData
sourceimpl Hash for RenderModuleData
impl Hash for RenderModuleData
sourceimpl PartialEq<RenderModuleData> for RenderModuleData
impl PartialEq<RenderModuleData> for RenderModuleData
sourcefn 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 ==
. Read more
sourceimpl ValueConverterTrait<RenderModuleData> for ValueConverter
impl ValueConverterTrait<RenderModuleData> for ValueConverter
sourcefn into_value(v: RenderModuleData) -> Value
fn into_value(v: RenderModuleData) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more