DtMeshTile

Struct DtMeshTile 

Source
pub struct DtMeshTile(/* private fields */);

Implementations§

Source§

impl DtMeshTile

Source

pub fn as_ptr(&self) -> *const CxxDtMeshTile

Source

pub fn as_mut_ptr(&mut self) -> *mut CxxDtMeshTile

Source

pub fn header(&self) -> Option<&DtMeshHeader>

Source

pub fn header_mut(&mut self) -> Option<&mut DtMeshHeader>

Source

pub fn polys(&self) -> &[DtPoly]

Source

pub fn polys_mut(&mut self) -> &mut [DtPoly]

Source

pub fn verts(&self) -> &[[f32; 3]]

Source

pub fn verts_mut(&mut self) -> &mut [[f32; 3]]

Source

pub fn detail_meshes(&self) -> &[DtPolyDetail]

Source

pub fn detail_meshes_mut(&mut self) -> &mut [DtPolyDetail]

Source

pub fn detail_verts(&self) -> &[[f32; 3]]

Source

pub fn detail_verts_mut(&mut self) -> &mut [[f32; 3]]

Source

pub fn detail_tris(&self) -> &[[u8; 4]]

Source

pub fn detail_tris_mut(&mut self) -> &mut [[u8; 4]]

Source

pub fn bv_tree(&self) -> &[DtBVNode]

Source

pub fn bv_tree_mut(&mut self) -> &mut [DtBVNode]

Source

pub fn off_mesh_cons(&self) -> &[DtOffMeshConnection]

Source

pub fn off_mesh_cons_mut(&mut self) -> &mut [DtOffMeshConnection]

Source

pub fn data(&self) -> &[u8]

Source

pub fn data_mut(&mut self) -> &mut [u8]

Source

pub fn data_size(&self) -> usize

Source

pub fn next(&self) -> Option<&DtMeshTile>

Source

pub fn next_mut(&mut self) -> Option<&mut DtMeshTile>

Trait Implementations§

Source§

impl Debug for DtMeshTile

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for DtMeshTile

Source§

type Target = CxxDtMeshTile

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for DtMeshTile

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

Source§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.