pub struct CustomRectIndex(/* private fields */);
Expand description
Identifier for a registered custom rectangle. Only the values obtained from the latest call to
UiBuilder::build_custom_atlas
are actually valid.
The CustomRectIndex::default()
is provided as a convenience, but it is always invalid, and
will panic if used.
Trait Implementations§
Source§impl Clone for CustomRectIndex
impl Clone for CustomRectIndex
Source§fn clone(&self) -> CustomRectIndex
fn clone(&self) -> CustomRectIndex
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CustomRectIndex
impl Debug for CustomRectIndex
Source§impl Default for CustomRectIndex
impl Default for CustomRectIndex
Source§impl Hash for CustomRectIndex
impl Hash for CustomRectIndex
Source§impl Ord for CustomRectIndex
impl Ord for CustomRectIndex
Source§fn cmp(&self, other: &CustomRectIndex) -> Ordering
fn cmp(&self, other: &CustomRectIndex) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CustomRectIndex
impl PartialEq for CustomRectIndex
Source§impl PartialOrd for CustomRectIndex
impl PartialOrd for CustomRectIndex
impl Copy for CustomRectIndex
impl Eq for CustomRectIndex
impl StructuralPartialEq for CustomRectIndex
Auto Trait Implementations§
impl Freeze for CustomRectIndex
impl RefUnwindSafe for CustomRectIndex
impl Send for CustomRectIndex
impl Sync for CustomRectIndex
impl Unpin for CustomRectIndex
impl UnwindSafe for CustomRectIndex
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