pub struct HeightfieldLayerSet { /* private fields */ }
Implementations§
Source§impl HeightfieldLayerSet
impl HeightfieldLayerSet
pub fn new( compact_heightfield: &CompactHeightfield<impl CompactHeightfieldState>, context: &mut Context, border_size: i32, walkable_height: i32, ) -> Result<HeightfieldLayerSet, ()>
pub fn len(&self) -> usize
pub fn get_layer(&self, index: usize) -> HeightfieldLayer<'_>
pub fn as_vec(&self) -> Vec<HeightfieldLayer<'_>>
Auto Trait Implementations§
impl Freeze for HeightfieldLayerSet
impl RefUnwindSafe for HeightfieldLayerSet
impl Send for HeightfieldLayerSet
impl !Sync for HeightfieldLayerSet
impl Unpin for HeightfieldLayerSet
impl UnwindSafe for HeightfieldLayerSet
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