Enum jumpy::prelude::KeyCode

#[repr(u32)]
pub enum KeyCode {
Show 163 variants Key1 = 0, Key2 = 1, Key3 = 2, Key4 = 3, Key5 = 4, Key6 = 5, Key7 = 6, Key8 = 7, Key9 = 8, Key0 = 9, A = 10, B = 11, C = 12, D = 13, E = 14, F = 15, G = 16, H = 17, I = 18, J = 19, K = 20, L = 21, M = 22, N = 23, O = 24, P = 25, Q = 26, R = 27, S = 28, T = 29, U = 30, V = 31, W = 32, X = 33, Y = 34, Z = 35, Escape = 36, F1 = 37, F2 = 38, F3 = 39, F4 = 40, F5 = 41, F6 = 42, F7 = 43, F8 = 44, F9 = 45, F10 = 46, F11 = 47, F12 = 48, F13 = 49, F14 = 50, F15 = 51, F16 = 52, F17 = 53, F18 = 54, F19 = 55, F20 = 56, F21 = 57, F22 = 58, F23 = 59, F24 = 60, Snapshot = 61, Scroll = 62, Pause = 63, Insert = 64, Home = 65, Delete = 66, End = 67, PageDown = 68, PageUp = 69, Left = 70, Up = 71, Right = 72, Down = 73, Back = 74, Return = 75, Space = 76, Compose = 77, Caret = 78, Numlock = 79, Numpad0 = 80, Numpad1 = 81, Numpad2 = 82, Numpad3 = 83, Numpad4 = 84, Numpad5 = 85, Numpad6 = 86, Numpad7 = 87, Numpad8 = 88, Numpad9 = 89, AbntC1 = 90, AbntC2 = 91, NumpadAdd = 92, Apostrophe = 93, Apps = 94, Asterisk = 95, Plus = 96, At = 97, Ax = 98, Backslash = 99, Calculator = 100, Capital = 101, Colon = 102, Comma = 103, Convert = 104, NumpadDecimal = 105, NumpadDivide = 106, Equals = 107, Grave = 108, Kana = 109, Kanji = 110, AltLeft = 111, BracketLeft = 112, ControlLeft = 113, ShiftLeft = 114, SuperLeft = 115, Mail = 116, MediaSelect = 117, MediaStop = 118, Minus = 119, NumpadMultiply = 120, Mute = 121, MyComputer = 122, NavigateForward = 123, NavigateBackward = 124, NextTrack = 125, NoConvert = 126, NumpadComma = 127, NumpadEnter = 128, NumpadEquals = 129, Oem102 = 130, Period = 131, PlayPause = 132, Power = 133, PrevTrack = 134, AltRight = 135, BracketRight = 136, ControlRight = 137, ShiftRight = 138, SuperRight = 139, Semicolon = 140, Slash = 141, Sleep = 142, Stop = 143, NumpadSubtract = 144, Sysrq = 145, Tab = 146, Underline = 147, Unlabeled = 148, VolumeDown = 149, VolumeUp = 150, Wake = 151, WebBack = 152, WebFavorites = 153, WebForward = 154, WebHome = 155, WebRefresh = 156, WebSearch = 157, WebStop = 158, Yen = 159, Copy = 160, Paste = 161, Cut = 162,
}
Expand description

The key code of a keyboard key.

Variants§

§

Key1 = 0

The 1 key over the letters.

§

Key2 = 1

The 2 key over the letters.

§

Key3 = 2

The 3 key over the letters.

§

Key4 = 3

The 4 key over the letters.

§

Key5 = 4

The 5 key over the letters.

§

Key6 = 5

The 6 key over the letters.

§

Key7 = 6

The 7 key over the letters.

§

Key8 = 7

The 8 key over the letters.

§

Key9 = 8

The 9 key over the letters.

§

Key0 = 9

The 0 key over the letters.

§

A = 10

The A key.

§

B = 11

The B key.

§

C = 12

The C key.

§

D = 13

The D key.

§

E = 14

The E key.

§

F = 15

The F key.

§

G = 16

The G key.

§

H = 17

The H key.

§

I = 18

The I key.

§

J = 19

The J key.

§

K = 20

The K key.

§

L = 21

The L key.

§

M = 22

The M key.

§

N = 23

The N key.

§

O = 24

The O key.

§

P = 25

The P key.

§

Q = 26

The Q key.

§

R = 27

The R key.

§

S = 28

The S key.

§

T = 29

The T key.

§

U = 30

The U key.

§

V = 31

The V key.

§

W = 32

The W key.

§

X = 33

The X key.

§

Y = 34

The Y key.

§

Z = 35

The Z key.

§

Escape = 36

The Escape / ESC key, next to the F1 key.

§

F1 = 37

The F1 key.

§

F2 = 38

The F2 key.

§

F3 = 39

The F3 key.

§

F4 = 40

The F4 key.

§

F5 = 41

The F5 key.

§

F6 = 42

The F6 key.

§

F7 = 43

The F7 key.

§

F8 = 44

The F8 key.

§

F9 = 45

The F9 key.

§

F10 = 46

The F10 key.

§

F11 = 47

The F11 key.

§

F12 = 48

The F12 key.

§

F13 = 49

The F13 key.

§

F14 = 50

The F14 key.

§

F15 = 51

The F15 key.

§

F16 = 52

The F16 key.

§

F17 = 53

The F17 key.

§

F18 = 54

The F18 key.

§

F19 = 55

The F19 key.

§

F20 = 56

The F20 key.

§

F21 = 57

The F21 key.

§

F22 = 58

The F22 key.

§

F23 = 59

The F23 key.

§

F24 = 60

The F24 key.

§

Snapshot = 61

The Snapshot / Print Screen key.

§

Scroll = 62

The Scroll / Scroll Lock key.

§

Pause = 63

The Pause / Break key, next to the Scroll key.

§

Insert = 64

The Insert key, next to the Backspace key.

§

Home = 65

The Home key.

§

Delete = 66

The Delete key.

§

End = 67

The End key.

§

PageDown = 68

The PageDown key.

§

PageUp = 69

The PageUp key.

§

Left = 70

The Left / Left Arrow key.

§

Up = 71

The Up / Up Arrow key.

§

Right = 72

The Right / Right Arrow key.

§

Down = 73

The Down / Down Arrow key.

§

Back = 74

The Back / Backspace key.

§

Return = 75

The Return / Enter key.

§

Space = 76

The Space / Spacebar / key.

§

Compose = 77

The Compose key on Linux.

§

Caret = 78

The Caret / ^ key.

§

Numlock = 79

The Numlock key.

§

Numpad0 = 80

The Numpad0 / 0 key.

§

Numpad1 = 81

The Numpad1 / 1 key.

§

Numpad2 = 82

The Numpad2 / 2 key.

§

Numpad3 = 83

The Numpad3 / 3 key.

§

Numpad4 = 84

The Numpad4 / 4 key.

§

Numpad5 = 85

The Numpad5 / 5 key.

§

Numpad6 = 86

The Numpad6 / 6 key.

§

Numpad7 = 87

The Numpad7 / 7 key.

§

Numpad8 = 88

The Numpad8 / 8 key.

§

Numpad9 = 89

The Numpad9 / 9 key.

§

AbntC1 = 90

The AbntC1 key.

§

AbntC2 = 91

The AbntC2 key.

§

NumpadAdd = 92

The NumpadAdd / + key.

§

Apostrophe = 93

The Apostrophe / ' key.

§

Apps = 94

The Apps key.

§

Asterisk = 95

The Asterisk / * key.

§

Plus = 96

The Plus / + key.

§

At = 97

The At / @ key.

§

Ax = 98

The Ax key.

§

Backslash = 99

The Backslash / \ key.

§

Calculator = 100

The Calculator key.

§

Capital = 101

The Capital key.

§

Colon = 102

The Colon / : key.

§

Comma = 103

The Comma / , key.

§

Convert = 104

The Convert key.

§

NumpadDecimal = 105

The NumpadDecimal / . key.

§

NumpadDivide = 106

The NumpadDivide / / key.

§

Equals = 107

The Equals / = key.

§

Grave = 108

The Grave / Backtick / ` key.

§

Kana = 109

The Kana key.

§

Kanji = 110

The Kanji key.

§

AltLeft = 111

The Left Alt key. Maps to Left Option on Mac.

§

BracketLeft = 112

The Left Bracket / [ key.

§

ControlLeft = 113

The Left Control key.

§

ShiftLeft = 114

The Left Shift key.

§

SuperLeft = 115

The Left Super key. Generic keyboards usually display this key with the Microsoft Windows logo. Apple keyboards call this key the Command Key and display it using the ⌘ character.

§

Mail = 116

The Mail key.

§

MediaSelect = 117

The MediaSelect key.

§

MediaStop = 118

The MediaStop key.

§

Minus = 119

The Minus / - key.

§

NumpadMultiply = 120

The NumpadMultiply / * key.

§

Mute = 121

The Mute key.

§

MyComputer = 122

The MyComputer key.

§

NavigateForward = 123

The NavigateForward / Prior key.

§

NavigateBackward = 124

The NavigateBackward / Next key.

§

NextTrack = 125

The NextTrack key.

§

NoConvert = 126

The NoConvert key.

§

NumpadComma = 127

The NumpadComma / , key.

§

NumpadEnter = 128

The NumpadEnter key.

§

NumpadEquals = 129

The NumpadEquals / = key.

§

Oem102 = 130

The Oem102 key.

§

Period = 131

The Period / . key.

§

PlayPause = 132

The PlayPause key.

§

Power = 133

The Power key.

§

PrevTrack = 134

The PrevTrack key.

§

AltRight = 135

The Right Alt key. Maps to Right Option on Mac.

§

BracketRight = 136

The Right Bracket / ] key.

§

ControlRight = 137

The Right Control key.

§

ShiftRight = 138

The Right Shift key.

§

SuperRight = 139

The Right Super key. Generic keyboards usually display this key with the Microsoft Windows logo. Apple keyboards call this key the Command Key and display it using the ⌘ character.

§

Semicolon = 140

The Semicolon / ; key.

§

Slash = 141

The Slash / / key.

§

Sleep = 142

The Sleep key.

§

Stop = 143

The Stop key.

§

NumpadSubtract = 144

The NumpadSubtract / - key.

§

Sysrq = 145

The Sysrq key.

§

Tab = 146

The Tab / key.

§

Underline = 147

The Underline / _ key.

§

Unlabeled = 148

The Unlabeled key.

§

VolumeDown = 149

The VolumeDown key.

§

VolumeUp = 150

The VolumeUp key.

§

Wake = 151

The Wake key.

§

WebBack = 152

The WebBack key.

§

WebFavorites = 153

The WebFavorites key.

§

WebForward = 154

The WebForward key.

§

WebHome = 155

The WebHome key.

§

WebRefresh = 156

The WebRefresh key.

§

WebSearch = 157

The WebSearch key.

§

WebStop = 158

The WebStop key.

§

Yen = 159

The Yen key.

§

Copy = 160

The Copy key.

§

Paste = 161

The Paste key.

§

Cut = 162

The Cut key.

Trait Implementations§

§

impl Clone for KeyCode

§

fn clone(&self) -> KeyCode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for KeyCode

§

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

Formats the value using the given formatter. Read more
§

impl Default for KeyCode

§

fn default() -> KeyCode

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

impl HasSchema for KeyCode

§

fn schema() -> &'static Schema

Get this type’s [Schema].
§

fn register_schema()

Register this schema with the global schema registry. Read more
§

fn cast<T>(this: &Self) -> &T
where T: HasSchema,

Cast a reference of this type to a reference of another type with the same memory layout. Read more
§

fn try_cast<T>(this: &Self) -> Result<&T, SchemaMismatchError>
where T: HasSchema,

Cast a reference of this type to a reference of another type with the same memory layout. Read more
§

fn cast_mut<T>(this: &mut Self) -> &mut T
where T: HasSchema,

Cast a mutable reference of this type to a reference of another type with the same memory layout. Read more
§

fn try_cast_mut<T>(this: &mut Self) -> Result<&mut T, SchemaMismatchError>
where T: HasSchema,

Cast a mutable reference of this type to a reference of another type with the same memory layout. Read more
§

fn as_schema_ref(&self) -> SchemaRef<'_>
where Self: Sized,

Converts a reference of T to a SchemaRef
§

fn as_schema_mut(&mut self) -> SchemaRefMut<'_>
where Self: Sized,

Converts a reference of T to a SchemaRefMut
§

impl Hash for KeyCode

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl PartialEq for KeyCode

§

fn eq(&self, other: &KeyCode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for KeyCode

§

impl Eq for KeyCode

§

impl StructuralPartialEq for KeyCode

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
§

impl<T> AnyEq for T
where T: Any + PartialEq,

§

fn equals(&self, other: &(dyn Any + 'static)) -> bool

§

fn as_any(&self) -> &(dyn Any + 'static)

§

impl<T, U> AsBindGroupShaderType<U> for T
where U: ShaderType, &'a T: for<'a> Into<U>,

§

fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U

Return the T [ShaderType] for self. When used in [AsBindGroup] derives, it is safe to assume that all images in self exist.
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

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> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> DynClone for T
where T: Clone,

§

impl<T> DynEq for T
where T: Any + Eq,

§

fn as_any(&self) -> &(dyn Any + 'static)

Casts the type to dyn Any.
§

fn dyn_eq(&self, other: &(dyn DynEq + 'static)) -> bool

This method tests for self and other values to be equal. Read more
§

impl<T> DynHash for T
where T: DynEq + Hash,

§

fn as_dyn_eq(&self) -> &(dyn DynEq + 'static)

Casts the type to dyn Any.
§

fn dyn_hash(&self, state: &mut dyn Hasher)

Feeds this value into the given Hasher.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<S> FromSample<S> for S

§

fn from_sample_(s: S) -> S

§

impl<T> FromWorld for T
where T: Default,

§

fn from_world(_world: &mut World) -> T

Creates Self using data from the given [World]
§

impl<T> FromWorld for T
where T: Default,

§

fn from_world(_world: &World) -> T

Creates Self using data from the given World.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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<F, T> IntoSample<T> for F
where T: FromSample<F>,

§

fn into_sample(self) -> T

§

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

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> RawClone for T
where T: Clone,

§

unsafe fn raw_clone(src: *const c_void, dst: *mut c_void)

Write the default value of the type to the pointer. Read more
§

fn raw_clone_cb() -> Unsafe<&'static (dyn Fn(*const c_void, *mut c_void) + Send + Sync)>

Get a callback suitable for [SchemaData].
§

impl<T> RawDefault for T
where T: Default,

§

unsafe fn raw_default(dst: *mut c_void)

Write the default value of the type to the pointer. Read more
§

fn raw_default_cb() -> Unsafe<&'static (dyn Fn(*mut c_void) + Send + Sync)>

Get a callback suitable for [SchemaData].
§

impl<T> RawDrop for T

§

unsafe fn raw_drop(ptr: *mut c_void)

Write the default value of the type to the pointer. Read more
§

fn raw_drop_cb() -> Unsafe<&'static (dyn Fn(*mut c_void) + Send + Sync)>

Get a callback suitable for [SchemaData].
§

impl<T> RawEq for T
where T: Eq,

§

unsafe fn raw_eq(a: *const c_void, b: *const c_void) -> bool

Get the hash of the type. Read more
§

fn raw_eq_cb() -> Unsafe<&'static (dyn Fn(*const c_void, *const c_void) -> bool + Send + Sync)>

Get a callback suitable for [SchemaData].
§

impl<T> RawHash for T
where T: Hash,

§

unsafe fn raw_hash(ptr: *const c_void) -> u64

Get the hash of the type. Read more
§

fn raw_hash_cb() -> Unsafe<&'static (dyn Fn(*const c_void) -> u64 + Send + Sync)>

Get a callback suitable for [SchemaData].
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<'gc, T> Singleton<'gc> for T
where T: Default,

§

fn create(_: Context<'gc>) -> T

§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<Q> ToOwnedEquivalent<<Q as ToOwned>::Owned> for Q
where Q: ToOwned + Eq + ?Sized,

§

fn to_owned_equivalent(&self) -> <Q as ToOwned>::Owned

§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

§

fn to_sample_(self) -> U

§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

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

§

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

§

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

impl<T> TypeData for T
where T: 'static + Send + Sync + Clone,

§

fn clone_type_data(&self) -> Box<dyn TypeData>

§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

§

impl<T> SerializableAny for T
where T: 'static + Any + Clone + for<'a> Send + Sync,