Struct chunked::component_data::ComponentDataVecWriter [−][src]
pub struct ComponentDataVecWriter<'a, 'b> { /* fields omitted */ }
A utility struct for writing component data.
Implementations
impl<'a, 'b> ComponentDataVecWriter<'a, 'b>
[src]
impl<'a, 'b> ComponentDataVecWriter<'a, 'b>
[src]pub fn new(
vec: &'b mut Vec<ComponentValueRef<'a>>
) -> ComponentDataVecWriter<'a, 'b>
[src]
pub fn new(
vec: &'b mut Vec<ComponentValueRef<'a>>
) -> ComponentDataVecWriter<'a, 'b>
[src]Create a new Vec
writer given the vector.
pub fn as_slice(&self) -> &[ComponentValueRef<'a>]ⓘ
[src]
pub fn as_slice(&self) -> &[ComponentValueRef<'a>]ⓘ
[src]Return the slice contents of this ComponentDataVec
.
pub fn set_component(&mut self, component_data: ComponentValueRef<'a>)
[src]
pub fn set_component(&mut self, component_data: ComponentValueRef<'a>)
[src]Set a component’s value.
pub fn remove_component(&mut self, type_id: ComponentTypeID)
[src]
pub fn remove_component(&mut self, type_id: ComponentTypeID)
[src]Remove a component from this writer.
Trait Implementations
Auto Trait Implementations
impl<'a, 'b> RefUnwindSafe for ComponentDataVecWriter<'a, 'b>
impl<'a, 'b> Send for ComponentDataVecWriter<'a, 'b>
impl<'a, 'b> Sync for ComponentDataVecWriter<'a, 'b>
impl<'a, 'b> Unpin for ComponentDataVecWriter<'a, 'b> where
'a: 'b,
'a: 'b,
impl<'a, 'b> !UnwindSafe for ComponentDataVecWriter<'a, 'b>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T