pub struct ID(/* private fields */);
Expand description
A unique per database face ID.
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 for ID
impl PartialOrd for ID
impl Copy for ID
impl Eq for ID
impl StructuralPartialEq for ID
Auto Trait Implementations§
impl Freeze for ID
impl RefUnwindSafe for ID
impl Send for ID
impl Sync for ID
impl Unpin for ID
impl UnwindSafe for ID
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)