Struct jit::kind::TypeKind
[−]
[src]
pub struct TypeKind { // some fields omitted }
Methods
impl TypeKind
const Void: TypeKind = $ BitFlags {
bits : $ value }
const SByte: TypeKind = $ BitFlags {
bits : $ value }
const UByte: TypeKind = $ BitFlags {
bits : $ value }
const Short: TypeKind = $ BitFlags {
bits : $ value }
const UShort: TypeKind = $ BitFlags {
bits : $ value }
const Int: TypeKind = $ BitFlags {
bits : $ value }
const UInt: TypeKind = $ BitFlags {
bits : $ value }
const NInt: TypeKind = $ BitFlags {
bits : $ value }
const NUInt: TypeKind = $ BitFlags {
bits : $ value }
const Long: TypeKind = $ BitFlags {
bits : $ value }
const ULong: TypeKind = $ BitFlags {
bits : $ value }
const Float32: TypeKind = $ BitFlags {
bits : $ value }
const Float64: TypeKind = $ BitFlags {
bits : $ value }
const NFloat: TypeKind = $ BitFlags {
bits : $ value }
const Struct: TypeKind = $ BitFlags {
bits : $ value }
const Union: TypeKind = $ BitFlags {
bits : $ value }
const Signature: TypeKind = $ BitFlags {
bits : $ value }
const Pointer: TypeKind = $ BitFlags {
bits : $ value }
const FirstTagged: TypeKind = $ BitFlags {
bits : $ value }
const SysBool: TypeKind = $ BitFlags {
bits : $ value }
const SysChar: TypeKind = $ BitFlags {
bits : $ value }
fn empty() -> TypeKind
Returns an empty set of flags.
fn all() -> TypeKind
Returns the set containing all flags.
fn bits(&self) -> c_int
Returns the raw value of the flags currently stored.
fn from_bits(bits: c_int) -> Option<TypeKind>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: c_int) -> TypeKind
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: TypeKind) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: TypeKind) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: TypeKind)
Inserts the specified flags in-place.
fn remove(&mut self, other: TypeKind)
Removes the specified flags in-place.
fn toggle(&mut self, other: TypeKind)
Toggles the specified flags in-place.
impl TypeKind
const Void: TypeKind = $ BitFlags {
bits : $ value }
const SByte: TypeKind = $ BitFlags {
bits : $ value }
const UByte: TypeKind = $ BitFlags {
bits : $ value }
const Short: TypeKind = $ BitFlags {
bits : $ value }
const UShort: TypeKind = $ BitFlags {
bits : $ value }
const Int: TypeKind = $ BitFlags {
bits : $ value }
const UInt: TypeKind = $ BitFlags {
bits : $ value }
const NInt: TypeKind = $ BitFlags {
bits : $ value }
const NUInt: TypeKind = $ BitFlags {
bits : $ value }
const Long: TypeKind = $ BitFlags {
bits : $ value }
const ULong: TypeKind = $ BitFlags {
bits : $ value }
const Float32: TypeKind = $ BitFlags {
bits : $ value }
const Float64: TypeKind = $ BitFlags {
bits : $ value }
const NFloat: TypeKind = $ BitFlags {
bits : $ value }
const Struct: TypeKind = $ BitFlags {
bits : $ value }
const Union: TypeKind = $ BitFlags {
bits : $ value }
const Signature: TypeKind = $ BitFlags {
bits : $ value }
const Pointer: TypeKind = $ BitFlags {
bits : $ value }
const FirstTagged: TypeKind = $ BitFlags {
bits : $ value }
const SysBool: TypeKind = $ BitFlags {
bits : $ value }
const SysChar: TypeKind = $ BitFlags {
bits : $ value }
fn empty() -> TypeKind
Returns an empty set of flags.
fn all() -> TypeKind
Returns the set containing all flags.
fn bits(&self) -> c_int
Returns the raw value of the flags currently stored.
fn from_bits(bits: c_int) -> Option<TypeKind>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: c_int) -> TypeKind
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: TypeKind) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: TypeKind) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: TypeKind)
Inserts the specified flags in-place.
fn remove(&mut self, other: TypeKind)
Removes the specified flags in-place.
fn toggle(&mut self, other: TypeKind)
Toggles the specified flags in-place.