pub struct Builder { /* private fields */ }
Implementations§
source§impl Builder
impl Builder
pub fn new( _mode: VertexMode, _vertex_count: i32, _index_count: i32, _flags: BuilderFlags ) -> Self
pub const fn is_valid(&self) -> bool
pub fn positions(&mut self) -> &mut [Point]
sourcepub fn tex_coords(&mut self) -> &mut [Point]
pub fn tex_coords(&mut self) -> &mut [Point]
Returns empty slice if there are no tex_coords
If we have custom attributes, it will always be empty.
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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