#[repr(transparent)]pub struct Tag(pub Tag);
Expand description
OCaml tags are used to provide type information to the garbage collector
Create a tag from an integer:
let _ = ocaml::Tag(0);
Tuple Fields§
§0: Tag
Implementations§
source§impl Tag
impl Tag
pub const FORWARD: Tag = _
pub const INFIX: Tag = _
pub const OBJECT: Tag = _
pub const CLOSURE: Tag = _
pub const LAZY: Tag = _
pub const ABSTRACT: Tag = _
pub const NO_SCAN: Tag = _
pub const STRING: Tag = _
pub const DOUBLE: Tag = _
pub const DOUBLE_ARRAY: Tag = _
pub const CUSTOM: Tag = _
Trait Implementations§
source§impl PartialOrd<Tag> for Tag
impl PartialOrd<Tag> for Tag
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more