[][src]Struct texture_packer::TexturePacker

pub struct TexturePacker<'a, T: 'a + Clone, P> { /* fields omitted */ }

Methods

impl<'a, Pix: Pixel, T: 'a + Clone + Texture<Pixel = Pix>> TexturePacker<'a, T, SkylinePacker<Pix>>[src]

pub fn new_skyline(
    config: TexturePackerConfig
) -> TexturePacker<'a, T, SkylinePacker<Pix>>
[src]

impl<'a, Pix: Pixel, P: Packer<Pixel = Pix>, T: Clone + Texture<Pixel = Pix>> TexturePacker<'a, T, P>[src]

pub fn can_pack(&self, texture: &'a T) -> bool[src]

pub fn pack_ref(&mut self, key: String, texture: &'a T) -> Result<(), PackError>[src]

pub fn pack_own(&mut self, key: String, texture: T) -> Result<(), PackError>[src]

pub fn get_frames(&self) -> &HashMap<String, Frame>[src]

pub fn get_frame(&self, key: &str) -> Option<&Frame>[src]

Trait Implementations

impl<'a, Pix, P, T: Clone> Texture for TexturePacker<'a, T, P> where
    Pix: Pixel,
    P: Packer<Pixel = Pix>,
    T: Texture<Pixel = Pix>, 
[src]

type Pixel = Pix

Auto Trait Implementations

impl<'a, T, P> RefUnwindSafe for TexturePacker<'a, T, P> where
    P: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, T, P> Send for TexturePacker<'a, T, P> where
    P: Send,
    T: Send + Sync

impl<'a, T, P> Sync for TexturePacker<'a, T, P> where
    P: Sync,
    T: Sync

impl<'a, T, P> Unpin for TexturePacker<'a, T, P> where
    P: Unpin,
    T: Unpin

impl<'a, T, P> UnwindSafe for TexturePacker<'a, T, P> where
    P: UnwindSafe,
    T: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<P, I> Texture for I where
    I: GenericImage<Pixel = P>,
    P: Pixel + Pixel
[src]

type Pixel = <I as GenericImageView>::Pixel

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.