Skip to main content

Key

Enum Key 

Source
pub enum Key {
Show 126 variants A, B, C, D, E, F, Prg, Cst, Var, Up, Nxt, Sto, Eval, Left, Down, Right, Cos, Tan, Sqrt, Power, Inv, Enter, Neg, Eex, Del, Backspace, Alpha, Sin, Seven, Eight, Nine, Divide, LeftShift, Mth, Four, Five, Six, Multiply, RightShift, One, Two, Three, Minus, Quote, Zero, Point, Space, Plus, Apps, Mode, Tool, Hist, Cat, Eqw, Symb, X, Plot, Num, Lib, Math, Home, Xt, LParen, RParen, Shift, Comma, Aplet, Views, Vars, Ddx, Ln, Log, Square, SigmaPlus, Xeq, Rcl, RollDown, Swap, Rs, Percent, Dsp, Prt, Exit, Input, Equals, LetterA, LetterB, LetterC, LetterD, LetterE, LetterF, LetterG, LetterH, LetterI, LetterJ, LetterK, LetterL, LetterM, LetterN, LetterO, LetterP, LetterQ, LetterR, LetterS, LetterT, LetterU, LetterV, LetterW, LetterX, LetterY, LetterZ, Hash, LBrace, LBracket, Program, Lc, Cursor, Trig, Solv, User, Drop, Ins, Question, Dollar, Colon, On,
}
Expand description

A calculator key.

Variants§

§

A

§

B

§

C

§

D

§

E

§

F

§

Prg

§

Cst

§

Var

§

Up

§

Nxt

§

Sto

§

Eval

§

Left

§

Down

§

Right

§

Cos

§

Tan

§

Sqrt

§

Power

§

Inv

§

Enter

§

Neg

§

Eex

§

Del

§

Backspace

§

Alpha

§

Sin

§

Seven

§

Eight

§

Nine

§

Divide

§

LeftShift

§

Mth

§

Four

§

Five

§

Six

§

Multiply

§

RightShift

§

One

§

Two

§

Three

§

Minus

§

Quote

§

Zero

§

Point

§

Space

§

Plus

§

Apps

§

Mode

§

Tool

§

Hist

§

Cat

§

Eqw

§

Symb

§

X

The 49G’s variable key “X”.

§

Plot

§

Num

§

Lib

§

Math

§

Home

§

Xt

The X,T,θ key.

§

LParen

§

RParen

§

Shift

§

Comma

§

Aplet

§

Views

§

Vars

§

Ddx

The 39G’s d/dx key.

§

Ln

§

Log

§

Square

The 39G’s x² key.

§

SigmaPlus

Σ+ (the 42S’s first top-row key).

§

Xeq

XEQ, execute.

§

Rcl

RCL, recall.

§

RollDown

R↓, roll down.

§

Swap

x≷y, swap X and Y.

§

Rs

R/S, run/stop.

§

Percent

%, percent (17B/17BII).

§

Dsp

DSP, display format (17B/17BII).

§

Prt

PRT, print (17B/17BII).

§

Exit

EXIT, leave a menu: a matrix key on the 27S and 17B/17BII. On the 42S, whose ON key is labelled EXIT, the name presses ON.

§

Input

INPUT, the wide key of the third row (ENTER in RPN on the 17BII).

§

Equals

=, equals.

§

LetterA

The 28S’s letter key A.

§

LetterB

The 28S’s letter key B.

§

LetterC

The 28S’s letter key C.

§

LetterD

The 28S’s letter key D.

§

LetterE

The 28S’s letter key E.

§

LetterF

The 28S’s letter key F.

§

LetterG

The 28S’s letter key G.

§

LetterH

The 28S’s letter key H.

§

LetterI

The 28S’s letter key I.

§

LetterJ

The 28S’s letter key J.

§

LetterK

The 28S’s letter key K.

§

LetterL

The 28S’s letter key L.

§

LetterM

The 28S’s letter key M.

§

LetterN

The 28S’s letter key N.

§

LetterO

The 28S’s letter key O.

§

LetterP

The 28S’s letter key P.

§

LetterQ

The 28S’s letter key Q.

§

LetterR

The 28S’s letter key R.

§

LetterS

The 28S’s letter key S.

§

LetterT

The 28S’s letter key T.

§

LetterU

The 28S’s letter key U.

§

LetterV

The 28S’s letter key V.

§

LetterW

The 28S’s letter key W.

§

LetterX

The 28S’s letter key X.

§

LetterY

The 28S’s letter key Y.

§

LetterZ

The 28S’s letter key Z.

§

Hash

#, binary integers (28S).

§

LBrace

{ }, list delimiters (28S).

§

LBracket

[ ], vector and matrix delimiters (28S).

§

Program

« », program delimiters (28S).

§

Lc

LC, lowercase lock (28S).

§

Cursor

The cursor-menu key between shift and TRIG (28S).

§

Trig

TRIG menu (28S).

§

Solv

SOLV menu (28S).

§

User

USER menu (28S).

§

Drop

DROP (28S).

§

Ins

INS, insert mode (19BII).

§

Question

The 19BII’s ? key.

§

Dollar

The 19BII’s $ key.

§

Colon

The 19BII’s : key.

§

On

The ON key, wired to IN bit 15 independent of OUT.

Implementations§

Source§

impl Key

Source

pub const ALL: [Key; 126]

Every key of every model, ON last.

Source

pub fn name(self) -> &'static str

Script name: “0”..“9” for digit keys, the lowercase variant name otherwise (e.g. “enter”, “leftshift”, “on”).

Source

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

Look up a key by its script name (case-insensitive); “f1”-“f6” name the softkeys A-F. Model-agnostic by design: “f1” is A everywhere (the 42S, which has no A-F, then refuses it), and “exit” is Key::Exit: the EXIT key on the 27S, 17B and 17BII, the ON key on every other model.

Trait Implementations§

Source§

impl Clone for Key

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for Key

Source§

impl Debug for Key

Source§

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

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

impl Eq for Key

Source§

impl Hash for Key

Source§

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

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

impl PartialEq for Key

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Key

Auto Trait Implementations§

§

impl Forget for Key

§

impl Freeze for Key

§

impl Move for Key

§

impl RefUnwindSafe for Key

§

impl Send for Key

§

impl Sync for Key

§

impl Unpin for Key

§

impl UnsafeUnpin for Key

§

impl UnwindSafe for Key

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

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> 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
Source§

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

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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.