Skip to main content

Model

Struct Model 

Source
pub struct Model { /* private fields */ }

Implementations§

Source§

impl Model

Source

pub fn new() -> Self

§Panics

Panics if the native allocation fails.

Source

pub fn model_name(&self) -> String

Source

pub fn set_model_name(&mut self, value: &str)

Source

pub fn global_flags(&self) -> Ref<'_, GlobalFlags>

Borrows the field in place — no copy, no allocation.

Source

pub fn global_flags_mut(&mut self) -> RefMut<'_, GlobalFlags>

Source

pub fn global_loops_len(&self) -> usize

Source

pub fn global_loops(&self, index: usize) -> Option<Ref<'_, GlobalSequence>>

Borrows element index in place. None when out of range.

Source

pub fn global_loops_mut( &mut self, index: usize, ) -> Option<RefMut<'_, GlobalSequence>>

Source

pub fn global_loops_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, GlobalSequence>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_global_loops(&mut self, count: usize)

Source

pub fn sequences_len(&self) -> usize

Source

pub fn sequences(&self, index: usize) -> Option<Ref<'_, Sequence>>

Borrows element index in place. None when out of range.

Source

pub fn sequences_mut(&mut self, index: usize) -> Option<RefMut<'_, Sequence>>

Source

pub fn sequences_iter(&self) -> impl ExactSizeIterator<Item = Ref<'_, Sequence>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_sequences(&mut self, count: usize)

Source

pub fn sequence_idx_hash_by_id(&self) -> &[u16]

Zero-copy view of the underlying std::vector.

Source

pub fn sequence_idx_hash_by_id_mut(&mut self) -> &mut [u16]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_sequence_idx_hash_by_id(&mut self, values: &[u16])

Source

pub fn resize_sequence_idx_hash_by_id(&mut self, count: usize)

Source

pub fn bones_len(&self) -> usize

Source

pub fn bones(&self, index: usize) -> Option<Ref<'_, Bone>>

Borrows element index in place. None when out of range.

Source

pub fn bones_mut(&mut self, index: usize) -> Option<RefMut<'_, Bone>>

Source

pub fn bones_iter(&self) -> impl ExactSizeIterator<Item = Ref<'_, Bone>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_bones(&mut self, count: usize)

Source

pub fn key_bone_ids(&self) -> &[u16]

Zero-copy view of the underlying std::vector.

Source

pub fn key_bone_ids_mut(&mut self) -> &mut [u16]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_key_bone_ids(&mut self, values: &[u16])

Source

pub fn resize_key_bone_ids(&mut self, count: usize)

Source

pub fn vertices_len(&self) -> usize

Source

pub fn vertices(&self, index: usize) -> Option<Ref<'_, Vertex>>

Borrows element index in place. None when out of range.

Source

pub fn vertices_mut(&mut self, index: usize) -> Option<RefMut<'_, Vertex>>

Source

pub fn vertices_iter(&self) -> impl ExactSizeIterator<Item = Ref<'_, Vertex>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_vertices(&mut self, count: usize)

Source

pub fn skin_profiles_len(&self) -> usize

Source

pub fn skin_profiles(&self, index: usize) -> Option<Ref<'_, SkinProfile>>

Borrows element index in place. None when out of range.

Source

pub fn skin_profiles_mut( &mut self, index: usize, ) -> Option<RefMut<'_, SkinProfile>>

Source

pub fn skin_profiles_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, SkinProfile>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_skin_profiles(&mut self, count: usize)

Source

pub fn lod_profiles_len(&self) -> usize

Source

pub fn lod_profiles(&self, index: usize) -> Option<Ref<'_, SkinProfile>>

Borrows element index in place. None when out of range.

Source

pub fn lod_profiles_mut( &mut self, index: usize, ) -> Option<RefMut<'_, SkinProfile>>

Source

pub fn lod_profiles_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, SkinProfile>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_lod_profiles(&mut self, count: usize)

Source

pub fn num_skin_profiles(&self) -> u32

Source

pub fn set_num_skin_profiles(&mut self, value: u32)

Source

pub fn colors_len(&self) -> usize

Source

pub fn colors(&self, index: usize) -> Option<Ref<'_, ColorAnimation>>

Borrows element index in place. None when out of range.

Source

pub fn colors_mut(&mut self, index: usize) -> Option<RefMut<'_, ColorAnimation>>

Source

pub fn colors_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, ColorAnimation>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_colors(&mut self, count: usize)

Source

pub fn textures_len(&self) -> usize

Source

pub fn textures(&self, index: usize) -> Option<Ref<'_, Texture>>

Borrows element index in place. None when out of range.

Source

pub fn textures_mut(&mut self, index: usize) -> Option<RefMut<'_, Texture>>

Source

pub fn textures_iter(&self) -> impl ExactSizeIterator<Item = Ref<'_, Texture>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_textures(&mut self, count: usize)

Source

pub fn texture_weights_len(&self) -> usize

Source

pub fn texture_weights(&self, index: usize) -> Option<Ref<'_, TextureWeight>>

Borrows element index in place. None when out of range.

Source

pub fn texture_weights_mut( &mut self, index: usize, ) -> Option<RefMut<'_, TextureWeight>>

Source

pub fn texture_weights_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, TextureWeight>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_texture_weights(&mut self, count: usize)

Source

pub fn texture_transforms_len(&self) -> usize

Source

pub fn texture_transforms( &self, index: usize, ) -> Option<Ref<'_, TextureTransform>>

Borrows element index in place. None when out of range.

Source

pub fn texture_transforms_mut( &mut self, index: usize, ) -> Option<RefMut<'_, TextureTransform>>

Source

pub fn texture_transforms_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, TextureTransform>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_texture_transforms(&mut self, count: usize)

Source

pub fn texture_indices_by_id(&self) -> &[u16]

Zero-copy view of the underlying std::vector.

Source

pub fn texture_indices_by_id_mut(&mut self) -> &mut [u16]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_texture_indices_by_id(&mut self, values: &[u16])

Source

pub fn resize_texture_indices_by_id(&mut self, count: usize)

Source

pub fn materials_len(&self) -> usize

Source

pub fn materials(&self, index: usize) -> Option<Ref<'_, Material>>

Borrows element index in place. None when out of range.

Source

pub fn materials_mut(&mut self, index: usize) -> Option<RefMut<'_, Material>>

Source

pub fn materials_iter(&self) -> impl ExactSizeIterator<Item = Ref<'_, Material>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_materials(&mut self, count: usize)

Source

pub fn bone_combos(&self) -> &[u16]

Zero-copy view of the underlying std::vector.

Source

pub fn bone_combos_mut(&mut self) -> &mut [u16]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_bone_combos(&mut self, values: &[u16])

Source

pub fn resize_bone_combos(&mut self, count: usize)

Source

pub fn texture_combos(&self) -> &[u16]

Zero-copy view of the underlying std::vector.

Source

pub fn texture_combos_mut(&mut self) -> &mut [u16]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_texture_combos(&mut self, values: &[u16])

Source

pub fn resize_texture_combos(&mut self, count: usize)

Source

pub fn texture_coord_combos(&self) -> &[u16]

Zero-copy view of the underlying std::vector.

Source

pub fn texture_coord_combos_mut(&mut self) -> &mut [u16]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_texture_coord_combos(&mut self, values: &[u16])

Source

pub fn resize_texture_coord_combos(&mut self, count: usize)

Source

pub fn texture_weight_combos(&self) -> &[u16]

Zero-copy view of the underlying std::vector.

Source

pub fn texture_weight_combos_mut(&mut self) -> &mut [u16]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_texture_weight_combos(&mut self, values: &[u16])

Source

pub fn resize_texture_weight_combos(&mut self, count: usize)

Source

pub fn texture_transform_combos(&self) -> &[u16]

Zero-copy view of the underlying std::vector.

Source

pub fn texture_transform_combos_mut(&mut self) -> &mut [u16]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_texture_transform_combos(&mut self, values: &[u16])

Source

pub fn resize_texture_transform_combos(&mut self, count: usize)

Source

pub fn bounding(&self) -> Ref<'_, Extent>

Borrows the field in place — no copy, no allocation.

Source

pub fn bounding_mut(&mut self) -> RefMut<'_, Extent>

Source

pub fn collision(&self) -> Ref<'_, Extent>

Borrows the field in place — no copy, no allocation.

Source

pub fn collision_mut(&mut self) -> RefMut<'_, Extent>

Source

pub fn collision_triangle_indices(&self) -> &[u16]

Zero-copy view of the underlying std::vector.

Source

pub fn collision_triangle_indices_mut(&mut self) -> &mut [u16]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_collision_triangle_indices(&mut self, values: &[u16])

Source

pub fn resize_collision_triangle_indices(&mut self, count: usize)

Source

pub fn collision_vertices(&self) -> &[Vector3f]

Zero-copy view of the underlying std::vector.

Source

pub fn collision_vertices_mut(&mut self) -> &mut [Vector3f]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_collision_vertices(&mut self, values: &[Vector3f])

Source

pub fn resize_collision_vertices(&mut self, count: usize)

Source

pub fn collision_face_normals(&self) -> &[Vector3f]

Zero-copy view of the underlying std::vector.

Source

pub fn collision_face_normals_mut(&mut self) -> &mut [Vector3f]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_collision_face_normals(&mut self, values: &[Vector3f])

Source

pub fn resize_collision_face_normals(&mut self, count: usize)

Source

pub fn attachments_len(&self) -> usize

Source

pub fn attachments(&self, index: usize) -> Option<Ref<'_, Attachment>>

Borrows element index in place. None when out of range.

Source

pub fn attachments_mut( &mut self, index: usize, ) -> Option<RefMut<'_, Attachment>>

Source

pub fn attachments_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, Attachment>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_attachments(&mut self, count: usize)

Source

pub fn attachment_indices_by_id(&self) -> &[u16]

Zero-copy view of the underlying std::vector.

Source

pub fn attachment_indices_by_id_mut(&mut self) -> &mut [u16]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_attachment_indices_by_id(&mut self, values: &[u16])

Source

pub fn resize_attachment_indices_by_id(&mut self, count: usize)

Source

pub fn events_len(&self) -> usize

Source

pub fn events(&self, index: usize) -> Option<Ref<'_, Event>>

Borrows element index in place. None when out of range.

Source

pub fn events_mut(&mut self, index: usize) -> Option<RefMut<'_, Event>>

Source

pub fn events_iter(&self) -> impl ExactSizeIterator<Item = Ref<'_, Event>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_events(&mut self, count: usize)

Source

pub fn lights_len(&self) -> usize

Source

pub fn lights(&self, index: usize) -> Option<Ref<'_, Light>>

Borrows element index in place. None when out of range.

Source

pub fn lights_mut(&mut self, index: usize) -> Option<RefMut<'_, Light>>

Source

pub fn lights_iter(&self) -> impl ExactSizeIterator<Item = Ref<'_, Light>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_lights(&mut self, count: usize)

Source

pub fn cameras_len(&self) -> usize

Source

pub fn cameras(&self, index: usize) -> Option<Ref<'_, Camera>>

Borrows element index in place. None when out of range.

Source

pub fn cameras_mut(&mut self, index: usize) -> Option<RefMut<'_, Camera>>

Source

pub fn cameras_iter(&self) -> impl ExactSizeIterator<Item = Ref<'_, Camera>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_cameras(&mut self, count: usize)

Source

pub fn camera_indices_by_id(&self) -> &[u16]

Zero-copy view of the underlying std::vector.

Source

pub fn camera_indices_by_id_mut(&mut self) -> &mut [u16]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_camera_indices_by_id(&mut self, values: &[u16])

Source

pub fn resize_camera_indices_by_id(&mut self, count: usize)

Source

pub fn ribbon_emitters_len(&self) -> usize

Source

pub fn ribbon_emitters(&self, index: usize) -> Option<Ref<'_, RibbonEmitter>>

Borrows element index in place. None when out of range.

Source

pub fn ribbon_emitters_mut( &mut self, index: usize, ) -> Option<RefMut<'_, RibbonEmitter>>

Source

pub fn ribbon_emitters_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, RibbonEmitter>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_ribbon_emitters(&mut self, count: usize)

Source

pub fn particle_emitters_len(&self) -> usize

Source

pub fn particle_emitters( &self, index: usize, ) -> Option<Ref<'_, ParticleEmitter>>

Borrows element index in place. None when out of range.

Source

pub fn particle_emitters_mut( &mut self, index: usize, ) -> Option<RefMut<'_, ParticleEmitter>>

Source

pub fn particle_emitters_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, ParticleEmitter>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_particle_emitters(&mut self, count: usize)

Source

pub fn texture_combiner_combos(&self) -> &[u16]

Zero-copy view of the underlying std::vector.

Source

pub fn texture_combiner_combos_mut(&mut self) -> &mut [u16]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_texture_combiner_combos(&mut self, values: &[u16])

Source

pub fn resize_texture_combiner_combos(&mut self, count: usize)

Source

pub fn texture_ids(&self) -> &[u32]

TXID Zero-copy view of the underlying std::vector.

Source

pub fn texture_ids_mut(&mut self) -> &mut [u32]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_texture_ids(&mut self, values: &[u32])

Source

pub fn resize_texture_ids(&mut self, count: usize)

Source

pub fn parent_sequence_replacements(&self) -> &[u16]

PABC Zero-copy view of the underlying std::vector.

Source

pub fn parent_sequence_replacements_mut(&mut self) -> &mut [u16]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_parent_sequence_replacements(&mut self, values: &[u16])

Source

pub fn resize_parent_sequence_replacements(&mut self, count: usize)

Source

pub fn parent_texture_weights_len(&self) -> usize

PADC

Source

pub fn parent_texture_weights( &self, index: usize, ) -> Option<Ref<'_, TextureWeight>>

Borrows element index in place. None when out of range.

Source

pub fn parent_texture_weights_mut( &mut self, index: usize, ) -> Option<RefMut<'_, TextureWeight>>

Source

pub fn parent_texture_weights_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, TextureWeight>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_parent_texture_weights(&mut self, count: usize)

Source

pub fn parent_sequence_bounds_len(&self) -> usize

PSBC

Source

pub fn parent_sequence_bounds(&self, index: usize) -> Option<Ref<'_, Extent>>

Borrows element index in place. None when out of range.

Source

pub fn parent_sequence_bounds_mut( &mut self, index: usize, ) -> Option<RefMut<'_, Extent>>

Source

pub fn parent_sequence_bounds_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, Extent>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_parent_sequence_bounds(&mut self, count: usize)

Source

pub fn parent_event_data_len(&self) -> usize

PEDC

Source

pub fn parent_event_data( &self, index: usize, ) -> Option<Ref<'_, AnimationTrackBase>>

Borrows element index in place. None when out of range.

Source

pub fn parent_event_data_mut( &mut self, index: usize, ) -> Option<RefMut<'_, AnimationTrackBase>>

Source

pub fn parent_event_data_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, AnimationTrackBase>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_parent_event_data(&mut self, count: usize)

Source

pub fn recursive_particle_model_ids(&self) -> &[u32]

RPID Zero-copy view of the underlying std::vector.

Source

pub fn recursive_particle_model_ids_mut(&mut self) -> &mut [u32]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_recursive_particle_model_ids(&mut self, values: &[u32])

Source

pub fn resize_recursive_particle_model_ids(&mut self, count: usize)

Source

pub fn geometry_particle_model_ids(&self) -> &[u32]

GPID Zero-copy view of the underlying std::vector.

Source

pub fn geometry_particle_model_ids_mut(&mut self) -> &mut [u32]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_geometry_particle_model_ids(&mut self, values: &[u32])

Source

pub fn resize_geometry_particle_model_ids(&mut self, count: usize)

Source

pub fn particle_geosets_len(&self) -> usize

PGD1

Source

pub fn particle_geosets( &self, index: usize, ) -> Option<Ref<'_, ParticleGeosetData>>

Borrows element index in place. None when out of range.

Source

pub fn particle_geosets_mut( &mut self, index: usize, ) -> Option<RefMut<'_, ParticleGeosetData>>

Source

pub fn particle_geosets_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, ParticleGeosetData>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_particle_geosets(&mut self, count: usize)

Source

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

PFDC Zero-copy view of the underlying std::vector.

Source

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

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_physics_file_data(&mut self, values: &[u8])

Source

pub fn resize_physics_file_data(&mut self, count: usize)

Source

pub fn edge_fade_entries_len(&self) -> usize

EDGF

Source

pub fn edge_fade_entries(&self, index: usize) -> Option<Ref<'_, EdgeFadeData>>

Borrows element index in place. None when out of range.

Source

pub fn edge_fade_entries_mut( &mut self, index: usize, ) -> Option<RefMut<'_, EdgeFadeData>>

Source

pub fn edge_fade_entries_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, EdgeFadeData>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_edge_fade_entries(&mut self, count: usize)

Source

pub fn nerf_entries_len(&self) -> usize

NERF

Source

pub fn nerf_entries(&self, index: usize) -> Option<Ref<'_, DistanceFadeData>>

Borrows element index in place. None when out of range.

Source

pub fn nerf_entries_mut( &mut self, index: usize, ) -> Option<RefMut<'_, DistanceFadeData>>

Source

pub fn nerf_entries_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, DistanceFadeData>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_nerf_entries(&mut self, count: usize)

Source

pub fn detailed_light_entries_len(&self) -> usize

DETL

Source

pub fn detailed_light_entries( &self, index: usize, ) -> Option<Ref<'_, DetailedLightData>>

Borrows element index in place. None when out of range.

Source

pub fn detailed_light_entries_mut( &mut self, index: usize, ) -> Option<RefMut<'_, DetailedLightData>>

Source

pub fn detailed_light_entries_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, DetailedLightData>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_detailed_light_entries(&mut self, count: usize)

Source

pub fn debug_occlusion_entries_len(&self) -> usize

DBOC

Source

pub fn debug_occlusion_entries( &self, index: usize, ) -> Option<Ref<'_, DebugOcclusionData>>

Borrows element index in place. None when out of range.

Source

pub fn debug_occlusion_entries_mut( &mut self, index: usize, ) -> Option<RefMut<'_, DebugOcclusionData>>

Source

pub fn debug_occlusion_entries_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, DebugOcclusionData>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_debug_occlusion_entries(&mut self, count: usize)

Source

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

AFRA Zero-copy view of the underlying std::vector.

Source

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

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_anim_frame_data(&mut self, values: &[u8])

Source

pub fn resize_anim_frame_data(&mut self, count: usize)

Source

pub fn textured_light_entries_len(&self) -> usize

TEXL

Source

pub fn textured_light_entries( &self, index: usize, ) -> Option<Ref<'_, TexturedLightData>>

Borrows element index in place. None when out of range.

Source

pub fn textured_light_entries_mut( &mut self, index: usize, ) -> Option<RefMut<'_, TexturedLightData>>

Source

pub fn textured_light_entries_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, TexturedLightData>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_textured_light_entries(&mut self, count: usize)

Trait Implementations§

Source§

impl Debug for Model

Source§

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

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

impl Default for Model

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Drop for Model

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl Send for Model

Auto Trait Implementations§

§

impl !Sync for Model

§

impl Freeze for Model

§

impl RefUnwindSafe for Model

§

impl Unpin for Model

§

impl UnsafeUnpin for Model

§

impl UnwindSafe for Model

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> 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<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, 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.