pub struct RigidModelMatch { /* private fields */ }Expand description
This struct represents a match within an RigidModel File.
Implementations§
Source§impl RigidModelMatch
impl RigidModelMatch
Sourcepub fn skeleton_id(&self) -> &bool
pub fn skeleton_id(&self) -> &bool
If the match is in the skeleton id of the rigid.
Sourcepub fn mesh_value(&self) -> &Option<(i32, i32)>
pub fn mesh_value(&self) -> &Option<(i32, i32)>
If the match is inside a mesh. The values are
- Lod index.
- Mesh index.
Sourcepub fn mesh_mat_name(&self) -> &bool
pub fn mesh_mat_name(&self) -> &bool
If the match is in the name of the material.
Sourcepub fn mesh_textute_directory(&self) -> &bool
pub fn mesh_textute_directory(&self) -> &bool
If the match is in the texture directory of a mesh.
Sourcepub fn mesh_filters(&self) -> &bool
pub fn mesh_filters(&self) -> &bool
If the match is in the filters of a mesh.
Sourcepub fn mesh_att_point_name(&self) -> &Option<i32>
pub fn mesh_att_point_name(&self) -> &Option<i32>
If the match is in the name of one of the attachment points of a mesh.
Sourcepub fn mesh_texture_path(&self) -> &Option<i32>
pub fn mesh_texture_path(&self) -> &Option<i32>
If the match is in the name of one of the texture paths of a mesh.
Source§impl RigidModelMatch
impl RigidModelMatch
Sourcepub fn skeleton_id_mut(&mut self) -> &mut bool
pub fn skeleton_id_mut(&mut self) -> &mut bool
If the match is in the skeleton id of the rigid.
Sourcepub fn mesh_value_mut(&mut self) -> &mut Option<(i32, i32)>
pub fn mesh_value_mut(&mut self) -> &mut Option<(i32, i32)>
If the match is inside a mesh. The values are
- Lod index.
- Mesh index.
Sourcepub fn mesh_name_mut(&mut self) -> &mut bool
pub fn mesh_name_mut(&mut self) -> &mut bool
If the match is in the name of a mesh.
Sourcepub fn mesh_mat_name_mut(&mut self) -> &mut bool
pub fn mesh_mat_name_mut(&mut self) -> &mut bool
If the match is in the name of the material.
Sourcepub fn mesh_textute_directory_mut(&mut self) -> &mut bool
pub fn mesh_textute_directory_mut(&mut self) -> &mut bool
If the match is in the texture directory of a mesh.
Sourcepub fn mesh_filters_mut(&mut self) -> &mut bool
pub fn mesh_filters_mut(&mut self) -> &mut bool
If the match is in the filters of a mesh.
Sourcepub fn mesh_att_point_name_mut(&mut self) -> &mut Option<i32>
pub fn mesh_att_point_name_mut(&mut self) -> &mut Option<i32>
If the match is in the name of one of the attachment points of a mesh.
Sourcepub fn mesh_texture_path_mut(&mut self) -> &mut Option<i32>
pub fn mesh_texture_path_mut(&mut self) -> &mut Option<i32>
If the match is in the name of one of the texture paths of a mesh.
Source§impl RigidModelMatch
impl RigidModelMatch
Sourcepub fn new(
skeleton_id: bool,
mesh_value: Option<(i32, i32)>,
mesh_name: bool,
mesh_mat_name: bool,
mesh_textute_directory: bool,
mesh_filters: bool,
mesh_att_point_name: Option<i32>,
mesh_texture_path: Option<i32>,
start: usize,
end: usize,
data: String,
) -> Self
pub fn new( skeleton_id: bool, mesh_value: Option<(i32, i32)>, mesh_name: bool, mesh_mat_name: bool, mesh_textute_directory: bool, mesh_filters: bool, mesh_att_point_name: Option<i32>, mesh_texture_path: Option<i32>, start: usize, end: usize, data: String, ) -> Self
This function creates a new RigidModelMatch with the provided data.
Trait Implementations§
Source§impl Clone for RigidModelMatch
impl Clone for RigidModelMatch
Source§fn clone(&self) -> RigidModelMatch
fn clone(&self) -> RigidModelMatch
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RigidModelMatch
impl Debug for RigidModelMatch
Source§impl<'de> Deserialize<'de> for RigidModelMatch
impl<'de> Deserialize<'de> for RigidModelMatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for RigidModelMatch
impl PartialEq for RigidModelMatch
Source§impl Serialize for RigidModelMatch
impl Serialize for RigidModelMatch
impl Eq for RigidModelMatch
impl StructuralPartialEq for RigidModelMatch
Auto Trait Implementations§
impl Freeze for RigidModelMatch
impl RefUnwindSafe for RigidModelMatch
impl Send for RigidModelMatch
impl Sync for RigidModelMatch
impl Unpin for RigidModelMatch
impl UnsafeUnpin for RigidModelMatch
impl UnwindSafe for RigidModelMatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.