Struct oxygengine_ha_renderer::mesh::geometry::GeometryLine
source · pub struct GeometryLine {
pub indices: [usize; 2],
pub attributes: GeometryAttributes,
}Fields§
§indices: [usize; 2]§attributes: GeometryAttributesImplementations§
source§impl GeometryLine
impl GeometryLine
pub fn new(indices: [usize; 2]) -> Self
pub fn with_attribute(self, name: impl ToString, value: GeometryValue) -> Self
Trait Implementations§
source§impl Clone for GeometryLine
impl Clone for GeometryLine
source§fn clone(&self) -> GeometryLine
fn clone(&self) -> GeometryLine
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 GeometryLine
impl Debug for GeometryLine
source§impl Default for GeometryLine
impl Default for GeometryLine
source§fn default() -> GeometryLine
fn default() -> GeometryLine
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GeometryLine
impl<'de> Deserialize<'de> for GeometryLine
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 FromIterator<GeometryLine> for GeometryLines
impl FromIterator<GeometryLine> for GeometryLines
source§fn from_iter<I: IntoIterator<Item = GeometryLine>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = GeometryLine>>(iter: I) -> Self
Creates a value from an iterator. Read more
source§impl PartialEq<GeometryLine> for GeometryLine
impl PartialEq<GeometryLine> for GeometryLine
source§fn eq(&self, other: &GeometryLine) -> bool
fn eq(&self, other: &GeometryLine) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for GeometryLine
impl Serialize for GeometryLine
impl StructuralPartialEq for GeometryLine
Auto Trait Implementations§
impl RefUnwindSafe for GeometryLine
impl Send for GeometryLine
impl Sync for GeometryLine
impl Unpin for GeometryLine
impl UnwindSafe for GeometryLine
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