pub struct DataDrivenGroup { /* private fields */ }Expand description
One shader fragment of a data-driven material, with its properties
Implementations§
Source§impl DataDrivenGroup
impl DataDrivenGroup
pub fn set_name_hash(&mut self, value: u32)
pub fn set_name(&mut self, value: &str)
Sourcepub fn properties_len(&self) -> usize
pub fn properties_len(&self) -> usize
Properties, in stored order
Sourcepub fn properties(&self, index: usize) -> Option<Ref<'_, DataDrivenProperty>>
pub fn properties(&self, index: usize) -> Option<Ref<'_, DataDrivenProperty>>
Borrows element index in place. None when out of range.
pub fn properties_mut( &mut self, index: usize, ) -> Option<RefMut<'_, DataDrivenProperty>>
Sourcepub fn properties_iter(
&self,
) -> impl ExactSizeIterator<Item = Ref<'_, DataDrivenProperty>>
pub fn properties_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, DataDrivenProperty>>
Iterate the elements, borrowing each in turn.
pub fn resize_properties(&mut self, count: usize)
Trait Implementations§
Source§impl Debug for DataDrivenGroup
impl Debug for DataDrivenGroup
Source§impl Default for DataDrivenGroup
impl Default for DataDrivenGroup
Source§impl Drop for DataDrivenGroup
impl Drop for DataDrivenGroup
impl Send for DataDrivenGroup
Auto Trait Implementations§
impl !Sync for DataDrivenGroup
impl Freeze for DataDrivenGroup
impl RefUnwindSafe for DataDrivenGroup
impl Unpin for DataDrivenGroup
impl UnsafeUnpin for DataDrivenGroup
impl UnwindSafe for DataDrivenGroup
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