[−][src]Struct packos::OutputItem
An item that was placed by a packing function.
OutputItem
corresponds 1:1 to InputItem
objects that were passed into
the packing function. They expose the ID from the input, as well as position
and size.
Methods
impl OutputItem
[src]
pub fn id(&self) -> Id
[src]
pub fn position(&self) -> (u32, u32)
[src]
pub fn size(&self) -> (u32, u32)
[src]
pub fn min(&self) -> (u32, u32)
[src]
pub fn max(&self) -> (u32, u32)
[src]
Trait Implementations
impl Clone for OutputItem
[src]
fn clone(&self) -> OutputItem
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for OutputItem
[src]
impl Debug for OutputItem
[src]
Auto Trait Implementations
impl RefUnwindSafe for OutputItem
impl Send for OutputItem
impl Sync for OutputItem
impl Unpin for OutputItem
impl UnwindSafe for OutputItem
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,