Enum Keycode

#[repr(i32)]
pub enum Keycode {
Show 250 variants ScancodeMask = 1_073_741_824, Unknown = 0, Return = 13, Escape = 27, Backspace = 8, Tab = 9, Space = 32, Exclaim = 33, DblApostrophe = 34, Hash = 35, Dollar = 36, Percent = 37, Ampersand = 38, Apostrophe = 39, LeftParen = 40, RightParen = 41, Asterisk = 42, Plus = 43, Comma = 44, Minus = 45, Period = 46, Slash = 47, _0 = 48, _1 = 49, _2 = 50, _3 = 51, _4 = 52, _5 = 53, _6 = 54, _7 = 55, _8 = 56, _9 = 57, Colon = 58, Semicolon = 59, Less = 60, Equals = 61, Greater = 62, Question = 63, At = 64, LeftBracket = 91, Backslash = 92, RightBracket = 93, Caret = 94, Underscore = 95, Grave = 96, A = 97, B = 98, C = 99, D = 100, E = 101, F = 102, G = 103, H = 104, I = 105, J = 106, K = 107, L = 108, M = 109, N = 110, O = 111, P = 112, Q = 113, R = 114, S = 115, T = 116, U = 117, V = 118, W = 119, X = 120, Y = 121, Z = 122, LeftBrace = 123, Pipe = 124, RightBrace = 125, Tilde = 126, Delete = 127, PlusMinus = 177, CapsLock = 1_073_741_881, F1 = 1_073_741_882, F2 = 1_073_741_883, F3 = 1_073_741_884, F4 = 1_073_741_885, F5 = 1_073_741_886, F6 = 1_073_741_887, F7 = 1_073_741_888, F8 = 1_073_741_889, F9 = 1_073_741_890, F10 = 1_073_741_891, F11 = 1_073_741_892, F12 = 1_073_741_893, PrintScreen = 1_073_741_894, ScrollLock = 1_073_741_895, Pause = 1_073_741_896, Insert = 1_073_741_897, Home = 1_073_741_898, PageUp = 1_073_741_899, End = 1_073_741_901, PageDown = 1_073_741_902, Right = 1_073_741_903, Left = 1_073_741_904, Down = 1_073_741_905, Up = 1_073_741_906, NumLockClear = 1_073_741_907, KpDivide = 1_073_741_908, KpMultiply = 1_073_741_909, KpMinus = 1_073_741_910, KpPlus = 1_073_741_911, KpEnter = 1_073_741_912, Kp1 = 1_073_741_913, Kp2 = 1_073_741_914, Kp3 = 1_073_741_915, Kp4 = 1_073_741_916, Kp5 = 1_073_741_917, Kp6 = 1_073_741_918, Kp7 = 1_073_741_919, Kp8 = 1_073_741_920, Kp9 = 1_073_741_921, Kp0 = 1_073_741_922, KpPeriod = 1_073_741_923, Application = 1_073_741_925, Power = 1_073_741_926, KpEquals = 1_073_741_927, F13 = 1_073_741_928, F14 = 1_073_741_929, F15 = 1_073_741_930, F16 = 1_073_741_931, F17 = 1_073_741_932, F18 = 1_073_741_933, F19 = 1_073_741_934, F20 = 1_073_741_935, F21 = 1_073_741_936, F22 = 1_073_741_937, F23 = 1_073_741_938, F24 = 1_073_741_939, Execute = 1_073_741_940, Help = 1_073_741_941, Menu = 1_073_741_942, Select = 1_073_741_943, Stop = 1_073_741_944, Again = 1_073_741_945, Undo = 1_073_741_946, Cut = 1_073_741_947, Copy = 1_073_741_948, Paste = 1_073_741_949, Find = 1_073_741_950, Mute = 1_073_741_951, VolumeUp = 1_073_741_952, VolumeDown = 1_073_741_953, KpComma = 1_073_741_957, KpEqualsAs400 = 1_073_741_958, AltErase = 1_073_741_977, SysReq = 1_073_741_978, Cancel = 1_073_741_979, Clear = 1_073_741_980, Prior = 1_073_741_981, Return2 = 1_073_741_982, Separator = 1_073_741_983, Out = 1_073_741_984, Oper = 1_073_741_985, ClearAgain = 1_073_741_986, CrSel = 1_073_741_987, ExSel = 1_073_741_988, Kp00 = 1_073_742_000, Kp000 = 1_073_742_001, ThousandsSeparator = 1_073_742_002, DecimalSeparator = 1_073_742_003, CurrencyUnit = 1_073_742_004, CurrencySubunit = 1_073_742_005, KpLeftParen = 1_073_742_006, KpRightParen = 1_073_742_007, KpLeftBrace = 1_073_742_008, KpRightBrace = 1_073_742_009, KpTab = 1_073_742_010, KpBackspace = 1_073_742_011, KpA = 1_073_742_012, KpB = 1_073_742_013, KpC = 1_073_742_014, KpD = 1_073_742_015, KpE = 1_073_742_016, KpF = 1_073_742_017, KpXor = 1_073_742_018, KpPower = 1_073_742_019, KpPercent = 1_073_742_020, KpLess = 1_073_742_021, KpGreater = 1_073_742_022, KpAmpersand = 1_073_742_023, KpDblAmpersand = 1_073_742_024, KpVerticalBar = 1_073_742_025, KpDblVerticalBar = 1_073_742_026, KpColon = 1_073_742_027, KpHash = 1_073_742_028, KpSpace = 1_073_742_029, KpAt = 1_073_742_030, KpExclam = 1_073_742_031, KpMemStore = 1_073_742_032, KpMemRecall = 1_073_742_033, KpMemClear = 1_073_742_034, KpMemAdd = 1_073_742_035, KpMemSubtract = 1_073_742_036, KpMemMultiply = 1_073_742_037, KpMemDivide = 1_073_742_038, KpPlusMinus = 1_073_742_039, KpClear = 1_073_742_040, KpClearEntry = 1_073_742_041, KpBinary = 1_073_742_042, KpOctal = 1_073_742_043, KpDecimal = 1_073_742_044, KpHexadecimal = 1_073_742_045, LCtrl = 1_073_742_048, LShift = 1_073_742_049, LAlt = 1_073_742_050, LGui = 1_073_742_051, RCtrl = 1_073_742_052, RShift = 1_073_742_053, RAlt = 1_073_742_054, RGui = 1_073_742_055, Mode = 1_073_742_081, Sleep = 1_073_742_082, Wake = 1_073_742_083, ChannelIncrement = 1_073_742_084, ChannelDecrement = 1_073_742_085, MediaPlay = 1_073_742_086, MediaPause = 1_073_742_087, MediaRecord = 1_073_742_088, MediaFastForward = 1_073_742_089, MediaRewind = 1_073_742_090, MediaNextTrack = 1_073_742_091, MediaPreviousTrack = 1_073_742_092, MediaStop = 1_073_742_093, MediaEject = 1_073_742_094, MediaPlayPause = 1_073_742_095, MediaSelect = 1_073_742_096, AcNew = 1_073_742_097, AcOpen = 1_073_742_098, AcClose = 1_073_742_099, AcExit = 1_073_742_100, AcSave = 1_073_742_101, AcPrint = 1_073_742_102, AcProperties = 1_073_742_103, AcSearch = 1_073_742_104, AcHome = 1_073_742_105, AcBack = 1_073_742_106, AcForward = 1_073_742_107, AcStop = 1_073_742_108, AcRefresh = 1_073_742_109, AcBookmarks = 1_073_742_110, SoftLeft = 1_073_742_111, SoftRight = 1_073_742_112, Call = 1_073_742_113, EndCall = 1_073_742_114,
}
Available on crate feature dep_sdl3 only.

Variants§

§

ScancodeMask = 1_073_741_824

§

Unknown = 0

§

Return = 13

§

Escape = 27

§

Backspace = 8

§

Tab = 9

§

Space = 32

§

Exclaim = 33

§

DblApostrophe = 34

§

Hash = 35

§

Dollar = 36

§

Percent = 37

§

Ampersand = 38

§

Apostrophe = 39

§

LeftParen = 40

§

RightParen = 41

§

Asterisk = 42

§

Plus = 43

§

Comma = 44

§

Minus = 45

§

Period = 46

§

Slash = 47

§

_0 = 48

§

_1 = 49

§

_2 = 50

§

_3 = 51

§

_4 = 52

§

_5 = 53

§

_6 = 54

§

_7 = 55

§

_8 = 56

§

_9 = 57

§

Colon = 58

§

Semicolon = 59

§

Less = 60

§

Equals = 61

§

Greater = 62

§

Question = 63

§

At = 64

§

LeftBracket = 91

§

Backslash = 92

§

RightBracket = 93

§

Caret = 94

§

Underscore = 95

§

Grave = 96

§

A = 97

§

B = 98

§

C = 99

§

D = 100

§

E = 101

§

F = 102

§

G = 103

§

H = 104

§

I = 105

§

J = 106

§

K = 107

§

L = 108

§

M = 109

§

N = 110

§

O = 111

§

P = 112

§

Q = 113

§

R = 114

§

S = 115

§

T = 116

§

U = 117

§

V = 118

§

W = 119

§

X = 120

§

Y = 121

§

Z = 122

§

LeftBrace = 123

§

Pipe = 124

§

RightBrace = 125

§

Tilde = 126

§

Delete = 127

§

PlusMinus = 177

§

CapsLock = 1_073_741_881

§

F1 = 1_073_741_882

§

F2 = 1_073_741_883

§

F3 = 1_073_741_884

§

F4 = 1_073_741_885

§

F5 = 1_073_741_886

§

F6 = 1_073_741_887

§

F7 = 1_073_741_888

§

F8 = 1_073_741_889

§

F9 = 1_073_741_890

§

F10 = 1_073_741_891

§

F11 = 1_073_741_892

§

F12 = 1_073_741_893

§

PrintScreen = 1_073_741_894

§

ScrollLock = 1_073_741_895

§

Pause = 1_073_741_896

§

Insert = 1_073_741_897

§

Home = 1_073_741_898

§

PageUp = 1_073_741_899

§

End = 1_073_741_901

§

PageDown = 1_073_741_902

§

Right = 1_073_741_903

§

Left = 1_073_741_904

§

Down = 1_073_741_905

§

Up = 1_073_741_906

§

NumLockClear = 1_073_741_907

§

KpDivide = 1_073_741_908

§

KpMultiply = 1_073_741_909

§

KpMinus = 1_073_741_910

§

KpPlus = 1_073_741_911

§

KpEnter = 1_073_741_912

§

Kp1 = 1_073_741_913

§

Kp2 = 1_073_741_914

§

Kp3 = 1_073_741_915

§

Kp4 = 1_073_741_916

§

Kp5 = 1_073_741_917

§

Kp6 = 1_073_741_918

§

Kp7 = 1_073_741_919

§

Kp8 = 1_073_741_920

§

Kp9 = 1_073_741_921

§

Kp0 = 1_073_741_922

§

KpPeriod = 1_073_741_923

§

Application = 1_073_741_925

§

Power = 1_073_741_926

§

KpEquals = 1_073_741_927

§

F13 = 1_073_741_928

§

F14 = 1_073_741_929

§

F15 = 1_073_741_930

§

F16 = 1_073_741_931

§

F17 = 1_073_741_932

§

F18 = 1_073_741_933

§

F19 = 1_073_741_934

§

F20 = 1_073_741_935

§

F21 = 1_073_741_936

§

F22 = 1_073_741_937

§

F23 = 1_073_741_938

§

F24 = 1_073_741_939

§

Execute = 1_073_741_940

§

Help = 1_073_741_941

§

Menu = 1_073_741_942

§

Select = 1_073_741_943

§

Stop = 1_073_741_944

§

Again = 1_073_741_945

§

Undo = 1_073_741_946

§

Cut = 1_073_741_947

§

Copy = 1_073_741_948

§

Paste = 1_073_741_949

§

Find = 1_073_741_950

§

Mute = 1_073_741_951

§

VolumeUp = 1_073_741_952

§

VolumeDown = 1_073_741_953

§

KpComma = 1_073_741_957

§

KpEqualsAs400 = 1_073_741_958

§

AltErase = 1_073_741_977

§

SysReq = 1_073_741_978

§

Cancel = 1_073_741_979

§

Clear = 1_073_741_980

§

Prior = 1_073_741_981

§

Return2 = 1_073_741_982

§

Separator = 1_073_741_983

§

Out = 1_073_741_984

§

Oper = 1_073_741_985

§

ClearAgain = 1_073_741_986

§

CrSel = 1_073_741_987

§

ExSel = 1_073_741_988

§

Kp00 = 1_073_742_000

§

Kp000 = 1_073_742_001

§

ThousandsSeparator = 1_073_742_002

§

DecimalSeparator = 1_073_742_003

§

CurrencyUnit = 1_073_742_004

§

CurrencySubunit = 1_073_742_005

§

KpLeftParen = 1_073_742_006

§

KpRightParen = 1_073_742_007

§

KpLeftBrace = 1_073_742_008

§

KpRightBrace = 1_073_742_009

§

KpTab = 1_073_742_010

§

KpBackspace = 1_073_742_011

§

KpA = 1_073_742_012

§

KpB = 1_073_742_013

§

KpC = 1_073_742_014

§

KpD = 1_073_742_015

§

KpE = 1_073_742_016

§

KpF = 1_073_742_017

§

KpXor = 1_073_742_018

§

KpPower = 1_073_742_019

§

KpPercent = 1_073_742_020

§

KpLess = 1_073_742_021

§

KpGreater = 1_073_742_022

§

KpAmpersand = 1_073_742_023

§

KpDblAmpersand = 1_073_742_024

§

KpVerticalBar = 1_073_742_025

§

KpDblVerticalBar = 1_073_742_026

§

KpColon = 1_073_742_027

§

KpHash = 1_073_742_028

§

KpSpace = 1_073_742_029

§

KpAt = 1_073_742_030

§

KpExclam = 1_073_742_031

§

KpMemStore = 1_073_742_032

§

KpMemRecall = 1_073_742_033

§

KpMemClear = 1_073_742_034

§

KpMemAdd = 1_073_742_035

§

KpMemSubtract = 1_073_742_036

§

KpMemMultiply = 1_073_742_037

§

KpMemDivide = 1_073_742_038

§

KpPlusMinus = 1_073_742_039

§

KpClear = 1_073_742_040

§

KpClearEntry = 1_073_742_041

§

KpBinary = 1_073_742_042

§

KpOctal = 1_073_742_043

§

KpDecimal = 1_073_742_044

§

KpHexadecimal = 1_073_742_045

§

LCtrl = 1_073_742_048

§

LShift = 1_073_742_049

§

LAlt = 1_073_742_050

§

LGui = 1_073_742_051

§

RCtrl = 1_073_742_052

§

RShift = 1_073_742_053

§

RAlt = 1_073_742_054

§

RGui = 1_073_742_055

§

Mode = 1_073_742_081

§

Sleep = 1_073_742_082

§

Wake = 1_073_742_083

§

ChannelIncrement = 1_073_742_084

§

ChannelDecrement = 1_073_742_085

§

MediaPlay = 1_073_742_086

§

MediaPause = 1_073_742_087

§

MediaRecord = 1_073_742_088

§

MediaFastForward = 1_073_742_089

§

MediaRewind = 1_073_742_090

§

MediaNextTrack = 1_073_742_091

§

MediaPreviousTrack = 1_073_742_092

§

MediaStop = 1_073_742_093

§

MediaEject = 1_073_742_094

§

MediaPlayPause = 1_073_742_095

§

MediaSelect = 1_073_742_096

§

AcNew = 1_073_742_097

§

AcOpen = 1_073_742_098

§

AcClose = 1_073_742_099

§

AcExit = 1_073_742_100

§

AcSave = 1_073_742_101

§

AcPrint = 1_073_742_102

§

AcProperties = 1_073_742_103

§

AcSearch = 1_073_742_104

§

AcHome = 1_073_742_105

§

AcBack = 1_073_742_106

§

AcForward = 1_073_742_107

§

AcStop = 1_073_742_108

§

AcRefresh = 1_073_742_109

§

AcBookmarks = 1_073_742_110

§

SoftLeft = 1_073_742_111

§

SoftRight = 1_073_742_112

§

Call = 1_073_742_113

§

EndCall = 1_073_742_114

Implementations§

§

impl Keycode

pub fn from_i32(n: i32) -> Option<Keycode>

pub fn to_ll(self) -> u32

§

impl Keycode

pub fn from_scancode( scancode: Scancode, modstate: u16, key_event: bool, ) -> Option<Keycode>

Gets the virtual key from a scancode. Returns None if there is no corresponding virtual key.

pub fn from_name(name: &str) -> Option<Keycode>

pub fn name(self) -> String

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 Display for Keycode

§

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

Formats the value using the given formatter. Read more
§

impl From<Keycode> for u32

§

fn from(k: Keycode) -> u32

Converts to this type from the input type.
§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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
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> ByteSized for T

Source§

const BYTE_ALIGN: usize = _

The alignment of this type in bytes.
Source§

const BYTE_SIZE: usize = _

The size of this type in bytes.
Source§

fn byte_align(&self) -> usize

Returns the alignment of this type in bytes.
Source§

fn byte_size(&self) -> usize

Returns the size of this type in bytes. Read more
Source§

fn ptr_size_ratio(&self) -> [usize; 2]

Returns the size ratio between Ptr::BYTES and BYTE_SIZE. Read more
Source§

impl<T, R> Chain<R> for T
where T: ?Sized,

Source§

fn chain<F>(self, f: F) -> R
where F: FnOnce(Self) -> R, Self: Sized,

Chain a function which takes the parameter by value.
Source§

fn chain_ref<F>(&self, f: F) -> R
where F: FnOnce(&Self) -> R,

Chain a function which takes the parameter by shared reference.
Source§

fn chain_mut<F>(&mut self, f: F) -> R
where F: FnOnce(&mut Self) -> R,

Chain a function which takes the parameter by exclusive reference.
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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<T> ExtAny for T
where T: Any + ?Sized,

Source§

fn type_id() -> TypeId

Returns the TypeId of Self. Read more
Source§

fn type_of(&self) -> TypeId

Returns the TypeId of self. Read more
Source§

fn type_name(&self) -> &'static str

Returns the type name of self. Read more
Source§

fn type_is<T: 'static>(&self) -> bool

Returns true if Self is of type T. Read more
Source§

fn type_hash(&self) -> u64

Returns a deterministic hash of the TypeId of Self.
Source§

fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64

Returns a deterministic hash of the TypeId of Self using a custom hasher.
Source§

fn as_any_ref(&self) -> &dyn Any
where Self: Sized,

Upcasts &self as &dyn Any. Read more
Source§

fn as_any_mut(&mut self) -> &mut dyn Any
where Self: Sized,

Upcasts &mut self as &mut dyn Any. Read more
Source§

fn as_any_box(self: Box<Self>) -> Box<dyn Any>
where Self: Sized,

Upcasts Box<self> as Box<dyn Any>. Read more
Source§

fn downcast_ref<T: 'static>(&self) -> Option<&T>

Available on crate feature unsafe_layout only.
Returns some shared reference to the inner value if it is of type T. Read more
Source§

fn downcast_mut<T: 'static>(&mut self) -> Option<&mut T>

Available on crate feature unsafe_layout only.
Returns some exclusive reference to the inner value if it is of type T. Read more
Source§

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

Source§

const NEEDS_DROP: bool = _

Know whether dropping values of this type matters, in compile-time.
Source§

fn mem_align_of<T>() -> usize

Returns the minimum alignment of the type in bytes. Read more
Source§

fn mem_align_of_val(&self) -> usize

Returns the alignment of the pointed-to value in bytes. Read more
Source§

fn mem_size_of<T>() -> usize

Returns the size of a type in bytes. Read more
Source§

fn mem_size_of_val(&self) -> usize

Returns the size of the pointed-to value in bytes. Read more
Source§

fn mem_copy(&self) -> Self
where Self: Copy,

Bitwise-copies a value. Read more
Source§

fn mem_needs_drop(&self) -> bool

Returns true if dropping values of this type matters. Read more
Source§

fn mem_drop(self)
where Self: Sized,

Drops self by running its destructor. Read more
Source§

fn mem_forget(self)
where Self: Sized,

Forgets about self without running its destructor. Read more
Source§

fn mem_replace(&mut self, other: Self) -> Self
where Self: Sized,

Replaces self with other, returning the previous value of self. Read more
Source§

fn mem_take(&mut self) -> Self
where Self: Default,

Replaces self with its default value, returning the previous value of self. Read more
Source§

fn mem_swap(&mut self, other: &mut Self)
where Self: Sized,

Swaps the value of self and other without deinitializing either one. Read more
Source§

unsafe fn mem_zeroed<T>() -> T

Available on crate feature unsafe_layout only.
Returns the value of type T represented by the all-zero byte-pattern. Read more
Source§

unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst

Available on crate feature unsafe_layout only.
Returns the value of type T represented by the all-zero byte-pattern. Read more
Source§

fn mem_as_bytes(&self) -> &[u8]
where Self: Sync + Unpin,

Available on crate feature unsafe_slice only.
View a Sync + Unpin self as &[u8]. Read more
Source§

fn mem_as_bytes_mut(&mut self) -> &mut [u8]
where Self: Sync + Unpin,

Available on crate feature unsafe_slice only.
View a Sync + Unpin self as &mut [u8]. 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

Source§

impl<T> Hook for T

Source§

fn hook_ref<F>(self, f: F) -> Self
where F: FnOnce(&Self),

Applies a function which takes the parameter by shared reference, and then returns the (possibly) modified owned value. Read more
Source§

fn hook_mut<F>(self, f: F) -> Self
where F: FnOnce(&mut Self),

Applies a function which takes the parameter by exclusive reference, and then returns the (possibly) modified owned value. Read more
§

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

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

Source§

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<T, U> ToSample<U> for T
where U: FromSample<T>,

§

fn to_sample_(self) -> U

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.
§

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

§

impl<T> Ungil for T
where T: Send,