pub trait HasNoteId {
// Required methods
fn id(self) -> u128;
fn id_index(self) -> u8;
fn from_id(id: u128) -> Res<Self>
where Self: Sized;
fn id_mask(notes: &[Self]) -> u128
where Self: Sized;
fn from_id_mask(id_mask: u128) -> Res<Vec<Self>>
where Self: Sized;
}
Expand description
A trait which allows for encoding the note as a u128
ID.