pub struct TextureDomain {
pub storage_size: Size,
pub display_rect: RectI,
pub data_rect: RectI,
}Fields§
§storage_size: Size§display_rect: RectI§data_rect: RectIImplementations§
Source§impl TextureDomain
impl TextureDomain
pub const fn full_frame(size: Size) -> Self
Trait Implementations§
Source§impl Clone for TextureDomain
impl Clone for TextureDomain
Source§fn clone(&self) -> TextureDomain
fn clone(&self) -> TextureDomain
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextureDomain
impl Debug for TextureDomain
Source§impl PartialEq for TextureDomain
impl PartialEq for TextureDomain
Source§fn eq(&self, other: &TextureDomain) -> bool
fn eq(&self, other: &TextureDomain) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TextureDomain
impl Eq for TextureDomain
impl StructuralPartialEq for TextureDomain
Auto Trait Implementations§
impl Freeze for TextureDomain
impl RefUnwindSafe for TextureDomain
impl Send for TextureDomain
impl Sync for TextureDomain
impl Unpin for TextureDomain
impl UnsafeUnpin for TextureDomain
impl UnwindSafe for TextureDomain
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.