Skip to main content

ObjectType

Enum ObjectType 

Source
#[repr(u32)]
pub enum ObjectType {
Show 281 variants Always = 1, AssignStmt = 2, Assignment = 3, Begin = 4, Case = 5, CaseItem = 6, Constant = 7, ContAssign = 8, Deassign = 9, DefParam = 10, DelayControl = 11, Disable = 12, EventControl = 13, EventStmt = 14, ForStmt = 15, Force = 16, Forever = 17, Fork = 18, FuncCall = 19, Function = 20, Gate = 21, IfStmt = 22, IfElse = 23, Initial = 24, IntegerVar = 25, InterModPath = 26, Iterator = 27, IODecl = 28, Memory = 29, MemoryWord = 30, ModPath = 31, Module = 32, NamedBegin = 33, NamedEvent = 34, NamedFork = 35, Net = 36, NetBit = 37, NullStmt = 38, Operation = 39, ParamAssign = 40, Parameter = 41, PartSelect = 42, PathTerm = 43, Port = 44, PortBit = 45, PrimTerm = 46, RealVar = 47, Reg = 48, RegBit = 49, Release = 50, Repeat = 51, RepeatControl = 52, SchedEvent = 53, SpecParam = 54, Switch = 55, SysFuncCall = 56, SysTaskCall = 57, TableEntry = 58, Task = 59, TaskCall = 60, Tchk = 61, TchkTerm = 62, TimeVar = 63, TimeQueue = 64, Udp = 65, UdpDefn = 66, UserSystf = 67, VarSelect = 68, Wait = 69, WhileStmt = 70, Condition = 71, Delay = 72, ElseStmt = 73, ForIncStmt = 74, ForInitStmt = 75, HighConn = 76, Lhs = 77, Index = 78, LeftRange = 79, LowConn = 80, Parent = 81, Rhs = 82, RightRange = 83, Scope = 84, SysTfCall = 85, TchkDataTerm = 86, TchkNotifier = 87, TchkRefTerm = 88, Argument = 89, Bit = 90, Driver = 91, InternalScope = 92, Load = 93, ModDataPathIn = 94, ModPathIn = 95, ModPathOut = 96, Operand = 97, PortInst = 98, Process = 99, Variables = 100, Use = 101, Expr = 102, Primitive = 103, Stmt = 104, Attribute = 105, BitSelect = 106, Callback = 107, DelayTerm = 108, DelayDevice = 109, Frame = 110, GateArray = 111, ModuleArray = 112, PrimitiveArray = 113, NetArray = 114, Range = 115, RegArray = 116, SwitchArray = 117, UdpArray = 118, ActiveTimeFormat = 119, InTerm = 120, InstanceArray = 121, LocalDriver = 122, LocalLoad = 123, OutTerm = 124, Ports = 125, SimNet = 126, TaskFunc = 127, ContAssignBit = 128, NamedEventArray = 129, IndexedPartSelect = 130, BaseExpr = 131, WidthExpr = 132, GenScopeArray = 133, GenScope = 134, GenVar = 135, Automatics = 136, Package = 600, Interface = 601, Program = 602, InterfaceArray = 603, ProgramArray = 604, Typespec = 605, Modport = 606, InterfaceTfDecl = 607, RefObj = 608, TypeParameter = 609, LongIntVar = 610, ShortIntVar = 611, IntVar = 612, ShortRealVar = 613, ByteVar = 614, ClassVar = 615, StringVar = 616, EnumVar = 617, StructVar = 618, UnionVar = 619, BitVar = 620, ClassObj = 621, ChandleVar = 622, PackedArrayVar = 623, VirtualInterfaceVar = 728, LongIntTypespec = 625, ShortRealTypespec = 626, ByteTypespec = 627, ShortIntTypespec = 628, IntTypespec = 629, ClassTypespec = 630, StringTypespec = 631, ChandleTypespec = 632, EnumTypespec = 633, EnumConst = 634, IntegerTypespec = 635, TimeTypespec = 636, RealTypespec = 637, StructTypespec = 638, UnionTypespec = 639, BitTypespec = 640, LogicTypespec = 641, ArrayTypespec = 642, VoidTypespec = 643, TypespecMember = 644, PackedArrayTypespec = 692, SequenceTypespec = 696, PropertyTypespec = 697, EventTypespec = 698, InterfaceTypespec = 906, ClockingBlock = 650, ClockingIODecl = 651, ClassDefn = 652, Constraint = 653, ConstraintOrdering = 654, DistItem = 645, AliasStmt = 646, Thread = 647, MethodFuncCall = 648, MethodTaskCall = 649, PropertyDecl = 655, PropertySpec = 656, PropertyExpr = 657, MulticlockSequenceExpr = 658, ClockedSeq = 659, ClockedProp = 902, PropertyInst = 660, SequenceDecl = 661, CaseProperty = 662, CasePropertyItem = 905, SequenceInst = 664, ImmediateAssert = 665, ImmediateAssume = 694, ImmediateCover = 695, Return = 666, ReturnStmt = 691, Assert = 686, Assume = 687, Cover = 688, Restrict = 901, DisableCondition = 689, ClockingEvent = 690, AnyPattern = 667, TaggedPattern = 668, StructPattern = 669, DoWhile = 670, OrderedWait = 671, WaitFork = 672, DisableFork = 673, ExpectStmt = 674, ForeachStmt = 675, Final = 676, Extends = 677, Distribution = 678, SeqFormalDecl = 679, PropFormalDecl = 699, EnumNet = 680, IntegerNet = 681, TimeNet = 682, StructNet = 683, Break = 684, Continue = 685, PackedArrayNet = 693, SoftDisable = 733, ConstrIf = 738, ConstrIfElse = 739, ConstrForEach = 736, LetDecl = 903, LetExpr = 904, ConstraintExpr = 747, ElseConst = 748, Implication = 749, ConstraintItem = 746, Actual = 700, TypedefAlias = 701, IndexTypespec = 702, BaseTypespec = 703, ElemTypespec = 704, InputSkew = 706, OutputSkew = 707, GlobalClocking = 708, DefaultClocking = 709, DefaultDisableIff = 710, Origin = 713, Prefix = 714, With = 715, Property = 718, ValueRange = 720, Pattern = 721, Weight = 722, Typedef = 725, Import = 726, DerivedClasses = 727, Methods = 730, SolveBefore = 731, SolveAfter = 732, WaitingProcesses = 734, Messages = 735, LoopVars = 737, ConcurrentAssertions = 740, MatchItem = 741, Member = 742, Element = 743, AssetItem = 744, Instance = 745,
}
Expand description

VPI object and relation kinds used with handle traversal APIs.

Values map directly to vpi_sys::vpi* constants.

Variants§

§

Always = 1

always procedure

§

AssignStmt = 2

quasi-continuous assignment

§

Assignment = 3

procedural assignment

§

Begin = 4

block statement

§

Case = 5

case statement

§

CaseItem = 6

case statement item

§

Constant = 7

numerical constant or string literal

§

ContAssign = 8

continuous assignment

§

Deassign = 9

deassignment statement

§

DefParam = 10

defparam

§

DelayControl = 11

delay statement (e.g., #10)

§

Disable = 12

named block disable statement

§

EventControl = 13

wait on event, e.g., @e

§

EventStmt = 14

event trigger, e.g., ->e

§

ForStmt = 15

for statement

§

Force = 16

force statement

§

Forever = 17

forever statement

§

Fork = 18

fork-join block

§

FuncCall = 19

function call

§

Function = 20

function

§

Gate = 21

primitive gate

§

IfStmt = 22

if statement

§

IfElse = 23

if–else statement

§

Initial = 24

initial procedure

§

IntegerVar = 25

integer variable

§

InterModPath = 26

intermodule wire delay

§

Iterator = 27

iterator

§

IODecl = 28

input/output declaration

§

Memory = 29

behavioral memory

§

MemoryWord = 30

single word of memory

§

ModPath = 31

module path for path delays

§

Module = 32

module instance

§

NamedBegin = 33

named block statement

§

NamedEvent = 34

event variable

§

NamedFork = 35

named fork-join block

§

Net = 36

scalar or vector net

§

NetBit = 37

bit of vector net

§

NullStmt = 38

a semicolon. Ie. #10 ;

§

Operation = 39

behavioral operation

§

ParamAssign = 40

module parameter assignment

§

Parameter = 41

module parameter

§

PartSelect = 42

part-select

§

PathTerm = 43

terminal of module path

§

Port = 44

module port

§

PortBit = 45

bit of vector module port

§

PrimTerm = 46

primitive terminal

§

RealVar = 47

real variable

§

Reg = 48

scalar or vector reg

§

RegBit = 49

bit of vector reg

§

Release = 50

release statement

§

Repeat = 51

repeat statement

§

RepeatControl = 52

repeat control in an assign stmt

§

SchedEvent = 53

vpi_put_value() event

§

SpecParam = 54

specparam

§

Switch = 55

transistor switch

§

SysFuncCall = 56

system function call

§

SysTaskCall = 57

system task call

§

TableEntry = 58

UDP state table entry

§

Task = 59

task

§

TaskCall = 60

task call

§

Tchk = 61

timing check

§

TchkTerm = 62

terminal of timing check

§

TimeVar = 63

time variable

§

TimeQueue = 64

simulation event queue

§

Udp = 65

user-defined primitive

§

UdpDefn = 66

UDP definition

§

UserSystf = 67

user-defined system task/function

§

VarSelect = 68

variable array selection

§

Wait = 69

wait statement

§

WhileStmt = 70

while statement

§

Condition = 71

condition expression

§

Delay = 72

net or gate delay

§

ElseStmt = 73

else statement

§

ForIncStmt = 74

increment statement in for loop

§

ForInitStmt = 75

initialization statement in for loop

§

HighConn = 76

higher connection to port

§

Lhs = 77

left-hand side of assignment

§

Index = 78

index of var select, bit-select, etc.

§

LeftRange = 79

left range of vector or part-select

§

LowConn = 80

lower connection to port

§

Parent = 81

parent object

§

Rhs = 82

right-hand side of assignment

§

RightRange = 83

right range of vector or part-select

§

Scope = 84

containing scope object

§

SysTfCall = 85

task function call

§

TchkDataTerm = 86

timing check data term

§

TchkNotifier = 87

timing check notifier

§

TchkRefTerm = 88

timing check reference term

§

Argument = 89

argument to (system) task/function

§

Bit = 90

bit of vector net or port

§

Driver = 91

driver for a net

§

InternalScope = 92

internal scope in module

§

Load = 93

load on net or reg

§

ModDataPathIn = 94

data terminal of a module path

§

ModPathIn = 95

Input terminal of a module path

§

ModPathOut = 96

output terminal of a module path

§

Operand = 97

operand of expression

§

PortInst = 98

connected port instance

§

Process = 99

process in module

§

Variables = 100

variables in module

§

Use = 101

usage

§

Expr = 102

connected expression

§

Primitive = 103

primitive (gate, switch, UDP)

§

Stmt = 104

statement in process or task

§

Attribute = 105

attribute of an object

§

BitSelect = 106

Bit-select of parameter, var select

§

Callback = 107

callback object

§

DelayTerm = 108

Delay term which is a load or driver

§

DelayDevice = 109

Delay object within a net

§

Frame = 110

reentrant task/func frame

§

GateArray = 111

gate instance array

§

ModuleArray = 112

module instance array

§

PrimitiveArray = 113

vpiprimitiveArray type

§

NetArray = 114

multidimensional net

§

Range = 115

range declaration

§

RegArray = 116

multidimensional reg

§

SwitchArray = 117

switch instance array

§

UdpArray = 118

UDP instance array

§

ActiveTimeFormat = 119

active $timeformat() system task

§

InTerm = 120

To get to a delay device’s drivers.

§

InstanceArray = 121

vpiInstance arrays

§

LocalDriver = 122

local drivers (within a module

§

LocalLoad = 123

local loads (within a module

§

OutTerm = 124

To get to a delay device’s loads.

§

Ports = 125

Module port

§

SimNet = 126

simulated net after collapsing

§

TaskFunc = 127

task/function

§

ContAssignBit = 128

Bit of a vector continuous assignment

§

NamedEventArray = 129

multidimensional named event

§

IndexedPartSelect = 130

Indexed part-select object

§

BaseExpr = 131

Indexed part-select’s base expression

§

WidthExpr = 132

Indexed part-select’s width expression

§

GenScopeArray = 133

array of generated scopes

§

GenScope = 134

A generated scope

§

GenVar = 135

Object used to instantiate gen scopes

§

Automatics = 136

Automatic variables of a frame

§

Package = 600

Available on crate feature sv only.

SystemVerilog package

§

Interface = 601

Available on crate feature sv only.

SystemVerilog interface

§

Program = 602

Available on crate feature sv only.

SystemVerilog program

§

InterfaceArray = 603

Available on crate feature sv only.

array of interface instances

§

ProgramArray = 604

Available on crate feature sv only.

array of program instances

§

Typespec = 605

Available on crate feature sv only.

type specification

§

Modport = 606

Available on crate feature sv only.

interface modport

§

InterfaceTfDecl = 607

Available on crate feature sv only.

interface task/function declaration

§

RefObj = 608

Available on crate feature sv only.

SystemVerilog ref object

§

TypeParameter = 609

Available on crate feature sv only.

SystemVerilog type parameter

§

LongIntVar = 610

Available on crate feature sv only.

long integer variable

§

ShortIntVar = 611

Available on crate feature sv only.

short integer variable

§

IntVar = 612

Available on crate feature sv only.

integer variable

§

ShortRealVar = 613

Available on crate feature sv only.

short real variable

§

ByteVar = 614

Available on crate feature sv only.

byte variable

§

ClassVar = 615

Available on crate feature sv only.

class variable

§

StringVar = 616

Available on crate feature sv only.

string variable

§

EnumVar = 617

Available on crate feature sv only.

enumeration variable

§

StructVar = 618

Available on crate feature sv only.

struct variable

§

UnionVar = 619

Available on crate feature sv only.

union variable

§

BitVar = 620

Available on crate feature sv only.

bit variable

§

ClassObj = 621

Available on crate feature sv only.

class object

§

ChandleVar = 622

Available on crate feature sv only.

chandle variable

§

PackedArrayVar = 623

Available on crate feature sv only.

packed array variable

§

VirtualInterfaceVar = 728

Available on crate feature sv only.

virtual interface variable

§

LongIntTypespec = 625

Available on crate feature sv only.

long int type specification

§

ShortRealTypespec = 626

Available on crate feature sv only.

short real type specification

§

ByteTypespec = 627

Available on crate feature sv only.

byte type specification

§

ShortIntTypespec = 628

Available on crate feature sv only.

short int type specification

§

IntTypespec = 629

Available on crate feature sv only.

int type specification

§

ClassTypespec = 630

Available on crate feature sv only.

class type specification

§

StringTypespec = 631

Available on crate feature sv only.

string type specification

§

ChandleTypespec = 632

Available on crate feature sv only.

chandle type specification

§

EnumTypespec = 633

Available on crate feature sv only.

enumeration type specification

§

EnumConst = 634

Available on crate feature sv only.

enumeration constant

§

IntegerTypespec = 635

Available on crate feature sv only.

integer type specification

§

TimeTypespec = 636

Available on crate feature sv only.

time type specification

§

RealTypespec = 637

Available on crate feature sv only.

real type specification

§

StructTypespec = 638

Available on crate feature sv only.

struct type specification

§

UnionTypespec = 639

Available on crate feature sv only.

union type specification

§

BitTypespec = 640

Available on crate feature sv only.

bit type specification

§

LogicTypespec = 641

Available on crate feature sv only.

logic type specification

§

ArrayTypespec = 642

Available on crate feature sv only.

array type specification

§

VoidTypespec = 643

Available on crate feature sv only.

void type specification

§

TypespecMember = 644

Available on crate feature sv only.

type specification member

§

PackedArrayTypespec = 692

Available on crate feature sv only.

packed array type specification

§

SequenceTypespec = 696

Available on crate feature sv only.

sequence type specification

§

PropertyTypespec = 697

Available on crate feature sv only.

property type specification

§

EventTypespec = 698

Available on crate feature sv only.

event type specification

§

InterfaceTypespec = 906

Available on crate feature sv only.

interface type specification

§

ClockingBlock = 650

Available on crate feature sv only.

clocking block

§

ClockingIODecl = 651

Available on crate feature sv only.

clocking block input/output declaration

§

ClassDefn = 652

Available on crate feature sv only.

class definition

§

Constraint = 653

Available on crate feature sv only.

constraint definition

§

ConstraintOrdering = 654

Available on crate feature sv only.

constraint ordering

§

DistItem = 645

Available on crate feature sv only.

distribution item

§

AliasStmt = 646

Available on crate feature sv only.

alias statement

§

Thread = 647

Available on crate feature sv only.

thread of execution

§

MethodFuncCall = 648

Available on crate feature sv only.

method function call

§

MethodTaskCall = 649

Available on crate feature sv only.

method task call

§

PropertyDecl = 655

Available on crate feature sv only.

property declaration

§

PropertySpec = 656

Available on crate feature sv only.

property specification

§

PropertyExpr = 657

Available on crate feature sv only.

property expression

§

MulticlockSequenceExpr = 658

Available on crate feature sv only.

multi-clock sequence expression

§

ClockedSeq = 659

Available on crate feature sv only.

clocked sequence

§

ClockedProp = 902

Available on crate feature sv only.

clocked property

§

PropertyInst = 660

Available on crate feature sv only.

property instantiation

§

SequenceDecl = 661

Available on crate feature sv only.

sequence declaration

§

CaseProperty = 662

Available on crate feature sv only.

property case statement

§

CasePropertyItem = 905

Available on crate feature sv only.

property case item

§

SequenceInst = 664

Available on crate feature sv only.

sequence instantiation

§

ImmediateAssert = 665

Available on crate feature sv only.

immediate assertion

§

ImmediateAssume = 694

Available on crate feature sv only.

immediate assume

§

ImmediateCover = 695

Available on crate feature sv only.

immediate cover

§

Return = 666

Available on crate feature sv only.

return statement

§

ReturnStmt = 691

Available on crate feature sv only.

return statement (1364-2005)

§

Assert = 686

Available on crate feature sv only.

concurrent assertion

§

Assume = 687

Available on crate feature sv only.

assume property

§

Cover = 688

Available on crate feature sv only.

cover property

§

Restrict = 901

Available on crate feature sv only.

restrict property

§

DisableCondition = 689

Available on crate feature sv only.

disable condition of assertion

§

ClockingEvent = 690

Available on crate feature sv only.

clocking event of assertion

§

AnyPattern = 667

Available on crate feature sv only.

any pattern

§

TaggedPattern = 668

Available on crate feature sv only.

tagged pattern

§

StructPattern = 669

Available on crate feature sv only.

struct pattern

§

DoWhile = 670

Available on crate feature sv only.

do-while loop

§

OrderedWait = 671

Available on crate feature sv only.

ordered wait statement

§

WaitFork = 672

Available on crate feature sv only.

wait fork statement

§

DisableFork = 673

Available on crate feature sv only.

disable fork statement

§

ExpectStmt = 674

Available on crate feature sv only.

expect statement

§

ForeachStmt = 675

Available on crate feature sv only.

foreach statement

§

Final = 676

Available on crate feature sv only.

final block

§

Extends = 677

Available on crate feature sv only.

extends declaration

§

Distribution = 678

Available on crate feature sv only.

distribution constraint

§

SeqFormalDecl = 679

Available on crate feature sv only.

sequence formal parameter declaration

§

PropFormalDecl = 699

Available on crate feature sv only.

property formal parameter declaration

§

EnumNet = 680

Available on crate feature sv only.

enumeration net

§

IntegerNet = 681

Available on crate feature sv only.

integer net

§

TimeNet = 682

Available on crate feature sv only.

time net

§

StructNet = 683

Available on crate feature sv only.

struct net

§

Break = 684

Available on crate feature sv only.

break statement

§

Continue = 685

Available on crate feature sv only.

continue statement

§

PackedArrayNet = 693

Available on crate feature sv only.

packed array net

§

SoftDisable = 733

Available on crate feature sv only.

soft constraint disable

§

ConstrIf = 738

Available on crate feature sv only.

constraint if statement

§

ConstrIfElse = 739

Available on crate feature sv only.

constraint if-else statement

§

ConstrForEach = 736

Available on crate feature sv only.

constraint foreach statement

§

LetDecl = 903

Available on crate feature sv only.

let declaration

§

LetExpr = 904

Available on crate feature sv only.

let expression

§

ConstraintExpr = 747

Available on crate feature sv only.

constraint expression

§

ElseConst = 748

Available on crate feature sv only.

else constant in constraint

§

Implication = 749

Available on crate feature sv only.

implication in constraint

§

ConstraintItem = 746

Available on crate feature sv only.

constraint item

§

Actual = 700

Available on crate feature sv only.

actual argument/port connection

§

TypedefAlias = 701

Available on crate feature sv only.

typedef alias

§

IndexTypespec = 702

Available on crate feature sv only.

index type specification

§

BaseTypespec = 703

Available on crate feature sv only.

base type specification

§

ElemTypespec = 704

Available on crate feature sv only.

element type specification

§

InputSkew = 706

Available on crate feature sv only.

input skew declaration

§

OutputSkew = 707

Available on crate feature sv only.

output skew declaration

§

GlobalClocking = 708

Available on crate feature sv only.

global clocking block

§

DefaultClocking = 709

Available on crate feature sv only.

default clocking block

§

DefaultDisableIff = 710

Available on crate feature sv only.

default disable if condition

§

Origin = 713

Available on crate feature sv only.

origin of typedef

§

Prefix = 714

Available on crate feature sv only.

prefix of type parameter

§

With = 715

Available on crate feature sv only.

with constraint

§

Property = 718

Available on crate feature sv only.

property relation

§

ValueRange = 720

Available on crate feature sv only.

value range constraint

§

Pattern = 721

Available on crate feature sv only.

pattern of constraint

§

Weight = 722

Available on crate feature sv only.

weight of distribution

§

Typedef = 725

Available on crate feature sv only.

typedef declaration

§

Import = 726

Available on crate feature sv only.

import declaration

§

DerivedClasses = 727

Available on crate feature sv only.

derived classes

§

Methods = 730

Available on crate feature sv only.

class methods

§

SolveBefore = 731

Available on crate feature sv only.

solve-before constraint ordering

§

SolveAfter = 732

Available on crate feature sv only.

solve-after constraint ordering

§

WaitingProcesses = 734

Available on crate feature sv only.

waiting processes

§

Messages = 735

Available on crate feature sv only.

messages

§

LoopVars = 737

Available on crate feature sv only.

loop variables

§

ConcurrentAssertions = 740

Available on crate feature sv only.

concurrent assertions

§

MatchItem = 741

Available on crate feature sv only.

match item in constraint

§

Member = 742

Available on crate feature sv only.

class member

§

Element = 743

Available on crate feature sv only.

array element

§

AssetItem = 744

Available on crate feature sv only.

assertion item

§

Instance = 745

Available on crate feature sv only.

module/program instance for 1-1 and 1-many

Trait Implementations§

Source§

impl Clone for ObjectType

Source§

fn clone(&self) -> ObjectType

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 ObjectType

Source§

impl Debug for ObjectType

Source§

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

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

impl FromPrimitive for ObjectType

Source§

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl ToPrimitive for ObjectType

Source§

fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be represented by an i64, then None is returned.
Source§

fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned.
Source§

fn to_isize(&self) -> Option<isize>

Converts the value of self to an isize. If the value cannot be represented by an isize, then None is returned.
Source§

fn to_i8(&self) -> Option<i8>

Converts the value of self to an i8. If the value cannot be represented by an i8, then None is returned.
Source§

fn to_i16(&self) -> Option<i16>

Converts the value of self to an i16. If the value cannot be represented by an i16, then None is returned.
Source§

fn to_i32(&self) -> Option<i32>

Converts the value of self to an i32. If the value cannot be represented by an i32, then None is returned.
Source§

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more
Source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned.
Source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned.
Source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned.
Source§

fn to_u32(&self) -> Option<u32>

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned.
Source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more
Source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32.
Source§

fn to_f64(&self) -> Option<f64>

Converts the value of self to an f64. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f64. Read more

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