pub struct ID(_);
Expand description
A unique per database face ID.
We’re using u32
internally, which is auto-incremented for each face.
A face removal doesn’t decrement the counter.
Since Database
is not global/unique, we cannot guarantee that a specific ID
is actually from the same db instance. This is up to the caller.
ID overflow will cause a panic, but it’s highly unlikely that someone would load more than 4 billion font faces.
Because the internal representation of ID is private, The Display
trait
implementation for this type only promise that unequal IDs will be displayed
as different strings, but does not make any guarantees about format or
content of the strings.
Implementations§
Trait Implementations§
source§impl Ord for ID
impl Ord for ID
source§impl PartialOrd<ID> for ID
impl PartialOrd<ID> for ID
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