Skip to main content

LabelMaker

Trait LabelMaker 

Source
pub trait LabelMaker {
    // Required methods
    fn new() -> Self;
    fn from_const(val: u64) -> Self;
    fn from_label(other: &Self) -> Self;
    fn from_label_offset(other: &Self, offset: i64) -> Self;
}
Expand description

Methods for creating a Label (or a RealLabel, but don’t do that).

Required Methods§

Source

fn new() -> Self

Create an undefined label.

Source

fn from_const(val: u64) -> Self

Create a label with a constant value val.

Source

fn from_label(other: &Self) -> Self

Create a label whose value is equal to other.

Source

fn from_label_offset(other: &Self, offset: i64) -> Self

Create a label whose value is equal to other plus offset.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§