#[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: TagImplementations§
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 for Tag
impl PartialOrd for Tag
impl Copy for Tag
impl Eq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more