pub enum ScriptTriggerMode {
FirstPerson = 0,
ThirdPerson = 1,
EditAvatar = 2,
Sitting = 3,
}Expand description
represents the various script trigger modes for the script_trigger_lbutton key binding
Variants§
FirstPerson = 0
“first_person” or 0
ThirdPerson = 1
“third_person” or 1
EditAvatar = 2
“edit_avatar” or 2
Sitting = 3
“sitting” or 3
Implementations§
Source§impl ScriptTriggerMode
impl ScriptTriggerMode
Sourcepub const fn is_first_person(&self) -> bool
pub const fn is_first_person(&self) -> bool
Returns true if the enum is ScriptTriggerMode::FirstPerson otherwise false
Sourcepub const fn is_third_person(&self) -> bool
pub const fn is_third_person(&self) -> bool
Returns true if the enum is ScriptTriggerMode::ThirdPerson otherwise false
Sourcepub const fn is_edit_avatar(&self) -> bool
pub const fn is_edit_avatar(&self) -> bool
Returns true if the enum is ScriptTriggerMode::EditAvatar otherwise false
Sourcepub const fn is_sitting(&self) -> bool
pub const fn is_sitting(&self) -> bool
Returns true if the enum is ScriptTriggerMode::Sitting otherwise false
Trait Implementations§
Source§impl Clone for ScriptTriggerMode
impl Clone for ScriptTriggerMode
Source§fn clone(&self) -> ScriptTriggerMode
fn clone(&self) -> ScriptTriggerMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptTriggerMode
impl Debug for ScriptTriggerMode
Source§impl Display for ScriptTriggerMode
impl Display for ScriptTriggerMode
Source§impl FromStr for ScriptTriggerMode
impl FromStr for ScriptTriggerMode
Source§impl Ord for ScriptTriggerMode
impl Ord for ScriptTriggerMode
Source§fn cmp(&self, other: &ScriptTriggerMode) -> Ordering
fn cmp(&self, other: &ScriptTriggerMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ScriptTriggerMode
impl PartialEq for ScriptTriggerMode
Source§impl PartialOrd for ScriptTriggerMode
impl PartialOrd for ScriptTriggerMode
impl Eq for ScriptTriggerMode
impl StructuralPartialEq for ScriptTriggerMode
Auto Trait Implementations§
impl Freeze for ScriptTriggerMode
impl RefUnwindSafe for ScriptTriggerMode
impl Send for ScriptTriggerMode
impl Sync for ScriptTriggerMode
impl Unpin for ScriptTriggerMode
impl UnwindSafe for ScriptTriggerMode
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