lief::assembly::riscv::registers

Enum SysReg

pub enum SysReg {
Show 515 variants fflags, frm, fcsr, vstart, vxsat, vxrm, vcsr, ssp, seed, jvt, sstatus, sie, stvec, scounteren, sf_stvt, senvcfg, sstateen0, sstateen1, sstateen2, sstateen3, sieh, scountinhibit, sscratch, sepc, scause, sbadaddr, sip, sf_snxti, sf_sintstatus, sf_sscratchcsw, sf_sscratchcswl, stimecmp, sctrctl, sctrstatus, siselect, sireg, sireg2, sireg3, siph, sireg4, sireg5, sireg6, stopei, stimecmph, sctrdepth, satp, srmcfg, vsstatus, vsie, vstvec, vsieh, vsscratch, vsepc, vscause, vstval, vsip, vstimecmp, vsctrctl, vsiselect, vsireg, vsireg2, vsireg3, vsiph, vsireg4, vsireg5, vsireg6, vstopei, vstimecmph, vsatp, mstatus, misa, medeleg, mideleg, mie, mtvec, mcounteren, sf_mtvt, mvien, mvip, menvcfg, mstateen0, mstateen1, mstateen2, mstateen3, mstatush, medelegh, midelegh, mieh, mvienh, mviph, menvcfgh, mstateen0h, mstateen1h, mstateen2h, mstateen3h, mcountinhibit, mcyclecfg, minstretcfg, mhpmevent3, mhpmevent4, mhpmevent5, mhpmevent6, mhpmevent7, mhpmevent8, mhpmevent9, mhpmevent10, mhpmevent11, mhpmevent12, mhpmevent13, mhpmevent14, mhpmevent15, mhpmevent16, mhpmevent17, mhpmevent18, mhpmevent19, mhpmevent20, mhpmevent21, mhpmevent22, mhpmevent23, mhpmevent24, mhpmevent25, mhpmevent26, mhpmevent27, mhpmevent28, mhpmevent29, mhpmevent30, mhpmevent31, mscratch, mepc, mcause, mbadaddr, mip, sf_mnxti, sf_mintstatus, sf_mscratchcsw, sf_mscratchcswl, mtinst, mtval2, mctrctl, miselect, mireg, mireg2, mireg3, miph, mireg4, mireg5, mireg6, mtopei, pmpcfg0, pmpcfg1, pmpcfg2, pmpcfg3, pmpcfg4, pmpcfg5, pmpcfg6, pmpcfg7, pmpcfg8, pmpcfg9, pmpcfg10, pmpcfg11, pmpcfg12, pmpcfg13, pmpcfg14, pmpcfg15, pmpaddr0, pmpaddr1, pmpaddr2, pmpaddr3, pmpaddr4, pmpaddr5, pmpaddr6, pmpaddr7, pmpaddr8, pmpaddr9, pmpaddr10, pmpaddr11, pmpaddr12, pmpaddr13, pmpaddr14, pmpaddr15, pmpaddr16, pmpaddr17, pmpaddr18, pmpaddr19, pmpaddr20, pmpaddr21, pmpaddr22, pmpaddr23, pmpaddr24, pmpaddr25, pmpaddr26, pmpaddr27, pmpaddr28, pmpaddr29, pmpaddr30, pmpaddr31, pmpaddr32, pmpaddr33, pmpaddr34, pmpaddr35, pmpaddr36, pmpaddr37, pmpaddr38, pmpaddr39, pmpaddr40, pmpaddr41, pmpaddr42, pmpaddr43, pmpaddr44, pmpaddr45, pmpaddr46, pmpaddr47, pmpaddr48, pmpaddr49, pmpaddr50, pmpaddr51, pmpaddr52, pmpaddr53, pmpaddr54, pmpaddr55, pmpaddr56, pmpaddr57, pmpaddr58, pmpaddr59, pmpaddr60, pmpaddr61, pmpaddr62, pmpaddr63, scontext, hstatus, hedeleg, hideleg, hie, htimedelta, hcounteren, hgeie, hvien, hvictl, henvcfg, hstateen0, hstateen1, hstateen2, hstateen3, hedelegh, hidelegh, htimedeltah, hvienh, henvcfgh, hstateen0h, hstateen1h, hstateen2h, hstateen3h, htval, hip, hvip, hviprio1, hviprio2, htinst, hviph, hviprio1h, hviprio2h, hgatp, hcontext, mcyclecfgh, minstretcfgh, mhpmevent3h, mhpmevent4h, mhpmevent5h, mhpmevent6h, mhpmevent7h, mhpmevent8h, mhpmevent9h, mhpmevent10h, mhpmevent11h, mhpmevent12h, mhpmevent13h, mhpmevent14h, mhpmevent15h, mhpmevent16h, mhpmevent17h, mhpmevent18h, mhpmevent19h, mhpmevent20h, mhpmevent21h, mhpmevent22h, mhpmevent23h, mhpmevent24h, mhpmevent25h, mhpmevent26h, mhpmevent27h, mhpmevent28h, mhpmevent29h, mhpmevent30h, mhpmevent31h, mnscratch, mnepc, mncause, mnstatus, mseccfg, mseccfgh, tselect, etrigger, tdata2, tdata3, tinfo, tcontrol, mcontext, mscontext, dcsr, dpc, dscratch, dscratch1, qc_mmcr, qc_mntvec, qc_mstktopaddr, qc_mstkbottomaddr, qc_mthreadptr, qc_mcause, qc_mwpstartaddr0, qc_mwpstartaddr1, qc_mwpstartaddr2, qc_mwpstartaddr3, qc_mwpendaddr0, qc_mwpendaddr1, qc_mwpendaddr2, qc_mwpendaddr3, qc_mclicip0, qc_mclicip1, qc_mclicip2, qc_mclicip3, qc_mclicip4, qc_mclicip5, qc_mclicip6, qc_mclicip7, qc_mclicie0, qc_mclicie1, qc_mclicie2, qc_mclicie3, qc_mclicie4, qc_mclicie5, qc_mclicie6, qc_mclicie7, mcycle, minstret, mhpmcounter3, mhpmcounter4, mhpmcounter5, mhpmcounter6, mhpmcounter7, mhpmcounter8, mhpmcounter9, mhpmcounter10, mhpmcounter11, mhpmcounter12, mhpmcounter13, mhpmcounter14, mhpmcounter15, mhpmcounter16, mhpmcounter17, mhpmcounter18, mhpmcounter19, mhpmcounter20, mhpmcounter21, mhpmcounter22, mhpmcounter23, mhpmcounter24, mhpmcounter25, mhpmcounter26, mhpmcounter27, mhpmcounter28, mhpmcounter29, mhpmcounter30, mhpmcounter31, mcycleh, minstreth, mhpmcounter3h, mhpmcounter4h, mhpmcounter5h, mhpmcounter6h, mhpmcounter7h, mhpmcounter8h, mhpmcounter9h, mhpmcounter10h, mhpmcounter11h, mhpmcounter12h, mhpmcounter13h, mhpmcounter14h, mhpmcounter15h, mhpmcounter16h, mhpmcounter17h, mhpmcounter18h, mhpmcounter19h, mhpmcounter20h, mhpmcounter21h, mhpmcounter22h, mhpmcounter23h, mhpmcounter24h, mhpmcounter25h, mhpmcounter26h, mhpmcounter27h, mhpmcounter28h, mhpmcounter29h, mhpmcounter30h, mhpmcounter31h, qc_mclicilvl00, qc_mclicilvl01, qc_mclicilvl02, qc_mclicilvl03, qc_mclicilvl04, qc_mclicilvl05, qc_mclicilvl06, qc_mclicilvl07, qc_mclicilvl08, qc_mclicilvl09, qc_mclicilvl10, qc_mclicilvl11, qc_mclicilvl12, qc_mclicilvl13, qc_mclicilvl14, qc_mclicilvl15, qc_mclicilvl16, qc_mclicilvl17, qc_mclicilvl18, qc_mclicilvl19, qc_mclicilvl20, qc_mclicilvl21, qc_mclicilvl22, qc_mclicilvl23, qc_mclicilvl24, qc_mclicilvl25, qc_mclicilvl26, qc_mclicilvl27, qc_mclicilvl28, qc_mclicilvl29, qc_mclicilvl30, qc_mclicilvl31, cycle, time, instret, hpmcounter3, hpmcounter4, hpmcounter5, hpmcounter6, hpmcounter7, hpmcounter8, hpmcounter9, hpmcounter10, hpmcounter11, hpmcounter12, hpmcounter13, hpmcounter14, hpmcounter15, hpmcounter16, hpmcounter17, hpmcounter18, hpmcounter19, hpmcounter20, hpmcounter21, hpmcounter22, hpmcounter23, hpmcounter24, hpmcounter25, hpmcounter26, hpmcounter27, hpmcounter28, hpmcounter29, hpmcounter30, hpmcounter31, vl, vtype, vlenb, cycleh, timeh, instreth, hpmcounter3h, hpmcounter4h, hpmcounter5h, hpmcounter6h, hpmcounter7h, hpmcounter8h, hpmcounter9h, hpmcounter10h, hpmcounter11h, hpmcounter12h, hpmcounter13h, hpmcounter14h, hpmcounter15h, hpmcounter16h, hpmcounter17h, hpmcounter18h, hpmcounter19h, hpmcounter20h, hpmcounter21h, hpmcounter22h, hpmcounter23h, hpmcounter24h, hpmcounter25h, hpmcounter26h, hpmcounter27h, hpmcounter28h, hpmcounter29h, hpmcounter30h, hpmcounter31h, scountovf, stopi, hgeip, vstopi, mvendorid, marchid, mimpid, mhartid, mconfigptr, mtopi, NUM_TARGET_SYSREGS, UNKNOWN(u64),
}

Variants§

§

fflags

§

frm

§

fcsr

§

vstart

§

vxsat

§

vxrm

§

vcsr

§

ssp

§

seed

§

jvt

§

sstatus

§

sie

§

stvec

§

scounteren

§

sf_stvt

§

senvcfg

§

sstateen0

§

sstateen1

§

sstateen2

§

sstateen3

§

sieh

§

scountinhibit

§

sscratch

§

sepc

§

scause

§

sbadaddr

§

sip

§

sf_snxti

§

sf_sintstatus

§

sf_sscratchcsw

§

sf_sscratchcswl

§

stimecmp

§

sctrctl

§

sctrstatus

§

siselect

§

sireg

§

sireg2

§

sireg3

§

siph

§

sireg4

§

sireg5

§

sireg6

§

stopei

§

stimecmph

§

sctrdepth

§

satp

§

srmcfg

§

vsstatus

§

vsie

§

vstvec

§

vsieh

§

vsscratch

§

vsepc

§

vscause

§

vstval

§

vsip

§

vstimecmp

§

vsctrctl

§

vsiselect

§

vsireg

§

vsireg2

§

vsireg3

§

vsiph

§

vsireg4

§

vsireg5

§

vsireg6

§

vstopei

§

vstimecmph

§

vsatp

§

mstatus

§

misa

§

medeleg

§

mideleg

§

mie

§

mtvec

§

mcounteren

§

sf_mtvt

§

mvien

§

mvip

§

menvcfg

§

mstateen0

§

mstateen1

§

mstateen2

§

mstateen3

§

mstatush

§

medelegh

§

midelegh

§

mieh

§

mvienh

§

mviph

§

menvcfgh

§

mstateen0h

§

mstateen1h

§

mstateen2h

§

mstateen3h

§

mcountinhibit

§

mcyclecfg

§

minstretcfg

§

mhpmevent3

§

mhpmevent4

§

mhpmevent5

§

mhpmevent6

§

mhpmevent7

§

mhpmevent8

§

mhpmevent9

§

mhpmevent10

§

mhpmevent11

§

mhpmevent12

§

mhpmevent13

§

mhpmevent14

§

mhpmevent15

§

mhpmevent16

§

mhpmevent17

§

mhpmevent18

§

mhpmevent19

§

mhpmevent20

§

mhpmevent21

§

mhpmevent22

§

mhpmevent23

§

mhpmevent24

§

mhpmevent25

§

mhpmevent26

§

mhpmevent27

§

mhpmevent28

§

mhpmevent29

§

mhpmevent30

§

mhpmevent31

§

mscratch

§

mepc

§

mcause

§

mbadaddr

§

mip

§

sf_mnxti

§

sf_mintstatus

§

sf_mscratchcsw

§

sf_mscratchcswl

§

mtinst

§

mtval2

§

mctrctl

§

miselect

§

mireg

§

mireg2

§

mireg3

§

miph

§

mireg4

§

mireg5

§

mireg6

§

mtopei

§

pmpcfg0

§

pmpcfg1

§

pmpcfg2

§

pmpcfg3

§

pmpcfg4

§

pmpcfg5

§

pmpcfg6

§

pmpcfg7

§

pmpcfg8

§

pmpcfg9

§

pmpcfg10

§

pmpcfg11

§

pmpcfg12

§

pmpcfg13

§

pmpcfg14

§

pmpcfg15

§

pmpaddr0

§

pmpaddr1

§

pmpaddr2

§

pmpaddr3

§

pmpaddr4

§

pmpaddr5

§

pmpaddr6

§

pmpaddr7

§

pmpaddr8

§

pmpaddr9

§

pmpaddr10

§

pmpaddr11

§

pmpaddr12

§

pmpaddr13

§

pmpaddr14

§

pmpaddr15

§

pmpaddr16

§

pmpaddr17

§

pmpaddr18

§

pmpaddr19

§

pmpaddr20

§

pmpaddr21

§

pmpaddr22

§

pmpaddr23

§

pmpaddr24

§

pmpaddr25

§

pmpaddr26

§

pmpaddr27

§

pmpaddr28

§

pmpaddr29

§

pmpaddr30

§

pmpaddr31

§

pmpaddr32

§

pmpaddr33

§

pmpaddr34

§

pmpaddr35

§

pmpaddr36

§

pmpaddr37

§

pmpaddr38

§

pmpaddr39

§

pmpaddr40

§

pmpaddr41

§

pmpaddr42

§

pmpaddr43

§

pmpaddr44

§

pmpaddr45

§

pmpaddr46

§

pmpaddr47

§

pmpaddr48

§

pmpaddr49

§

pmpaddr50

§

pmpaddr51

§

pmpaddr52

§

pmpaddr53

§

pmpaddr54

§

pmpaddr55

§

pmpaddr56

§

pmpaddr57

§

pmpaddr58

§

pmpaddr59

§

pmpaddr60

§

pmpaddr61

§

pmpaddr62

§

pmpaddr63

§

scontext

§

hstatus

§

hedeleg

§

hideleg

§

hie

§

htimedelta

§

hcounteren

§

hgeie

§

hvien

§

hvictl

§

henvcfg

§

hstateen0

§

hstateen1

§

hstateen2

§

hstateen3

§

hedelegh

§

hidelegh

§

htimedeltah

§

hvienh

§

henvcfgh

§

hstateen0h

§

hstateen1h

§

hstateen2h

§

hstateen3h

§

htval

§

hip

§

hvip

§

hviprio1

§

hviprio2

§

htinst

§

hviph

§

hviprio1h

§

hviprio2h

§

hgatp

§

hcontext

§

mcyclecfgh

§

minstretcfgh

§

mhpmevent3h

§

mhpmevent4h

§

mhpmevent5h

§

mhpmevent6h

§

mhpmevent7h

§

mhpmevent8h

§

mhpmevent9h

§

mhpmevent10h

§

mhpmevent11h

§

mhpmevent12h

§

mhpmevent13h

§

mhpmevent14h

§

mhpmevent15h

§

mhpmevent16h

§

mhpmevent17h

§

mhpmevent18h

§

mhpmevent19h

§

mhpmevent20h

§

mhpmevent21h

§

mhpmevent22h

§

mhpmevent23h

§

mhpmevent24h

§

mhpmevent25h

§

mhpmevent26h

§

mhpmevent27h

§

mhpmevent28h

§

mhpmevent29h

§

mhpmevent30h

§

mhpmevent31h

§

mnscratch

§

mnepc

§

mncause

§

mnstatus

§

mseccfg

§

mseccfgh

§

tselect

§

etrigger

§

tdata2

§

tdata3

§

tinfo

§

tcontrol

§

mcontext

§

mscontext

§

dcsr

§

dpc

§

dscratch

§

dscratch1

§

qc_mmcr

§

qc_mntvec

§

qc_mstktopaddr

§

qc_mstkbottomaddr

§

qc_mthreadptr

§

qc_mcause

§

qc_mwpstartaddr0

§

qc_mwpstartaddr1

§

qc_mwpstartaddr2

§

qc_mwpstartaddr3

§

qc_mwpendaddr0

§

qc_mwpendaddr1

§

qc_mwpendaddr2

§

qc_mwpendaddr3

§

qc_mclicip0

§

qc_mclicip1

§

qc_mclicip2

§

qc_mclicip3

§

qc_mclicip4

§

qc_mclicip5

§

qc_mclicip6

§

qc_mclicip7

§

qc_mclicie0

§

qc_mclicie1

§

qc_mclicie2

§

qc_mclicie3

§

qc_mclicie4

§

qc_mclicie5

§

qc_mclicie6

§

qc_mclicie7

§

mcycle

§

minstret

§

mhpmcounter3

§

mhpmcounter4

§

mhpmcounter5

§

mhpmcounter6

§

mhpmcounter7

§

mhpmcounter8

§

mhpmcounter9

§

mhpmcounter10

§

mhpmcounter11

§

mhpmcounter12

§

mhpmcounter13

§

mhpmcounter14

§

mhpmcounter15

§

mhpmcounter16

§

mhpmcounter17

§

mhpmcounter18

§

mhpmcounter19

§

mhpmcounter20

§

mhpmcounter21

§

mhpmcounter22

§

mhpmcounter23

§

mhpmcounter24

§

mhpmcounter25

§

mhpmcounter26

§

mhpmcounter27

§

mhpmcounter28

§

mhpmcounter29

§

mhpmcounter30

§

mhpmcounter31

§

mcycleh

§

minstreth

§

mhpmcounter3h

§

mhpmcounter4h

§

mhpmcounter5h

§

mhpmcounter6h

§

mhpmcounter7h

§

mhpmcounter8h

§

mhpmcounter9h

§

mhpmcounter10h

§

mhpmcounter11h

§

mhpmcounter12h

§

mhpmcounter13h

§

mhpmcounter14h

§

mhpmcounter15h

§

mhpmcounter16h

§

mhpmcounter17h

§

mhpmcounter18h

§

mhpmcounter19h

§

mhpmcounter20h

§

mhpmcounter21h

§

mhpmcounter22h

§

mhpmcounter23h

§

mhpmcounter24h

§

mhpmcounter25h

§

mhpmcounter26h

§

mhpmcounter27h

§

mhpmcounter28h

§

mhpmcounter29h

§

mhpmcounter30h

§

mhpmcounter31h

§

qc_mclicilvl00

§

qc_mclicilvl01

§

qc_mclicilvl02

§

qc_mclicilvl03

§

qc_mclicilvl04

§

qc_mclicilvl05

§

qc_mclicilvl06

§

qc_mclicilvl07

§

qc_mclicilvl08

§

qc_mclicilvl09

§

qc_mclicilvl10

§

qc_mclicilvl11

§

qc_mclicilvl12

§

qc_mclicilvl13

§

qc_mclicilvl14

§

qc_mclicilvl15

§

qc_mclicilvl16

§

qc_mclicilvl17

§

qc_mclicilvl18

§

qc_mclicilvl19

§

qc_mclicilvl20

§

qc_mclicilvl21

§

qc_mclicilvl22

§

qc_mclicilvl23

§

qc_mclicilvl24

§

qc_mclicilvl25

§

qc_mclicilvl26

§

qc_mclicilvl27

§

qc_mclicilvl28

§

qc_mclicilvl29

§

qc_mclicilvl30

§

qc_mclicilvl31

§

cycle

§

time

§

instret

§

hpmcounter3

§

hpmcounter4

§

hpmcounter5

§

hpmcounter6

§

hpmcounter7

§

hpmcounter8

§

hpmcounter9

§

hpmcounter10

§

hpmcounter11

§

hpmcounter12

§

hpmcounter13

§

hpmcounter14

§

hpmcounter15

§

hpmcounter16

§

hpmcounter17

§

hpmcounter18

§

hpmcounter19

§

hpmcounter20

§

hpmcounter21

§

hpmcounter22

§

hpmcounter23

§

hpmcounter24

§

hpmcounter25

§

hpmcounter26

§

hpmcounter27

§

hpmcounter28

§

hpmcounter29

§

hpmcounter30

§

hpmcounter31

§

vl

§

vtype

§

vlenb

§

cycleh

§

timeh

§

instreth

§

hpmcounter3h

§

hpmcounter4h

§

hpmcounter5h

§

hpmcounter6h

§

hpmcounter7h

§

hpmcounter8h

§

hpmcounter9h

§

hpmcounter10h

§

hpmcounter11h

§

hpmcounter12h

§

hpmcounter13h

§

hpmcounter14h

§

hpmcounter15h

§

hpmcounter16h

§

hpmcounter17h

§

hpmcounter18h

§

hpmcounter19h

§

hpmcounter20h

§

hpmcounter21h

§

hpmcounter22h

§

hpmcounter23h

§

hpmcounter24h

§

hpmcounter25h

§

hpmcounter26h

§

hpmcounter27h

§

hpmcounter28h

§

hpmcounter29h

§

hpmcounter30h

§

hpmcounter31h

§

scountovf

§

stopi

§

hgeip

§

vstopi

§

mvendorid

§

marchid

§

mimpid

§

mhartid

§

mconfigptr

§

mtopi

§

NUM_TARGET_SYSREGS

§

UNKNOWN(u64)

Trait Implementations§

§

impl Clone for SysReg

§

fn clone(&self) -> SysReg

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 SysReg

§

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

Formats the value using the given formatter. Read more
§

impl From<u64> for SysReg

§

fn from(value: u64) -> Self

Converts to this type from the input type.
§

impl Hash for SysReg

§

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
§

impl Ord for SysReg

§

fn cmp(&self, other: &SysReg) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
§

impl PartialEq for SysReg

§

fn eq(&self, other: &SysReg) -> 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 PartialOrd for SysReg

§

fn partial_cmp(&self, other: &SysReg) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl Copy for SysReg

§

impl Eq for SysReg

§

impl StructuralPartialEq for SysReg

Auto Trait Implementations§

§

impl Freeze for SysReg

§

impl RefUnwindSafe for SysReg

§

impl Send for SysReg

§

impl Sync for SysReg

§

impl Unpin for SysReg

§

impl UnwindSafe for SysReg

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, dst: *mut u8)

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