Struct oxygengine_ha_renderer::mesh::geometry::GeometryAttributes
source · pub struct GeometryAttributes { /* private fields */ }Implementations§
source§impl GeometryAttributes
impl GeometryAttributes
pub fn with(self, name: impl ToString, value: impl Into<GeometryValue>) -> Self
pub fn get(&self, name: &str) -> Option<GeometryValue>
pub fn set( &mut self, name: impl ToString, value: impl Into<GeometryValue> ) -> Option<GeometryValue>
pub fn delete(&mut self, name: &str) -> Option<GeometryValue>
pub fn has(&self, name: &str) -> bool
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&str, &GeometryValue)>
pub fn iter_mut(&mut self) -> impl Iterator<Item = (&str, &mut GeometryValue)>
Trait Implementations§
source§impl Clone for GeometryAttributes
impl Clone for GeometryAttributes
source§fn clone(&self) -> GeometryAttributes
fn clone(&self) -> GeometryAttributes
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 GeometryAttributes
impl Debug for GeometryAttributes
source§impl Default for GeometryAttributes
impl Default for GeometryAttributes
source§fn default() -> GeometryAttributes
fn default() -> GeometryAttributes
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GeometryAttributes
impl<'de> Deserialize<'de> for GeometryAttributes
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<GeometryAttributes> for GeometryAttributes
impl PartialEq<GeometryAttributes> for GeometryAttributes
source§fn eq(&self, other: &GeometryAttributes) -> bool
fn eq(&self, other: &GeometryAttributes) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for GeometryAttributes
impl Serialize for GeometryAttributes
impl StructuralPartialEq for GeometryAttributes
Auto Trait Implementations§
impl RefUnwindSafe for GeometryAttributes
impl Send for GeometryAttributes
impl Sync for GeometryAttributes
impl Unpin for GeometryAttributes
impl UnwindSafe for GeometryAttributes
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more