pub struct Plot3DDataLayout { /* private fields */ }Expand description
Data layout used by ImPlot3D item builders.
Implementations§
Source§impl Plot3DDataLayout
impl Plot3DDataLayout
Sourcepub const fn new(offset: Plot3DDataOffset, stride: Plot3DDataStride) -> Self
pub const fn new(offset: Plot3DDataOffset, stride: Plot3DDataStride) -> Self
Create a data layout from a sample offset and byte stride.
Sourcepub const fn with_offset(self, offset: Plot3DDataOffset) -> Self
pub const fn with_offset(self, offset: Plot3DDataOffset) -> Self
Create a data layout with a different sample offset.
Sourcepub const fn with_stride(self, stride: Plot3DDataStride) -> Self
pub const fn with_stride(self, stride: Plot3DDataStride) -> Self
Create a data layout with a different byte stride.
Trait Implementations§
Source§impl Clone for Plot3DDataLayout
impl Clone for Plot3DDataLayout
Source§fn clone(&self) -> Plot3DDataLayout
fn clone(&self) -> Plot3DDataLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Plot3DDataLayout
Source§impl Debug for Plot3DDataLayout
impl Debug for Plot3DDataLayout
Source§impl Default for Plot3DDataLayout
impl Default for Plot3DDataLayout
Source§fn default() -> Plot3DDataLayout
fn default() -> Plot3DDataLayout
Returns the “default value” for a type. Read more
impl Eq for Plot3DDataLayout
Source§impl PartialEq for Plot3DDataLayout
impl PartialEq for Plot3DDataLayout
Source§fn eq(&self, other: &Plot3DDataLayout) -> bool
fn eq(&self, other: &Plot3DDataLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Plot3DDataLayout
Auto Trait Implementations§
impl Freeze for Plot3DDataLayout
impl RefUnwindSafe for Plot3DDataLayout
impl Send for Plot3DDataLayout
impl Sync for Plot3DDataLayout
impl Unpin for Plot3DDataLayout
impl UnsafeUnpin for Plot3DDataLayout
impl UnwindSafe for Plot3DDataLayout
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