pub struct ArrayTiler<S: Schema> { /* private fields */ }Expand description
An array tiler.
Implementations§
Source§impl<S: Schema> ArrayTiler<S>
impl<S: Schema> ArrayTiler<S>
Sourcepub fn new(horiz_mode: TileAlignMode, vert_mode: TileAlignMode) -> Self
pub fn new(horiz_mode: TileAlignMode, vert_mode: TileAlignMode) -> Self
Creates an ArrayTiler.
horiz_mode and vert_mode specify how to align tiles in the horizontal and vertical
directions, respectively.
Sourcepub fn push<T: Tileable<S>>(&mut self, tile: Tile<T>) -> ArrayTileKey<T>
pub fn push<T: Tileable<S>>(&mut self, tile: Tile<T>) -> ArrayTileKey<T>
Pushes a new tile to the tiler, returning a key for accessing the tiled object.
Source§impl<S: Schema + 'static> ArrayTiler<S>
impl<S: Schema + 'static> ArrayTiler<S>
Sourcepub fn get<T: Tileable<S>>(&self, key: ArrayTileKey<T>) -> Option<&T>
pub fn get<T: Tileable<S>>(&self, key: ArrayTileKey<T>) -> Option<&T>
Gets a tiled object using its ArrayTileKey.
Trait Implementations§
Source§impl<S: Schema> Draw<S> for ArrayTiler<S>
impl<S: Schema> Draw<S> for ArrayTiler<S>
Source§impl<S: Schema + 'static, T: Tileable<S>> Index<ArrayTileKey<T>> for ArrayTiler<S>
impl<S: Schema + 'static, T: Tileable<S>> Index<ArrayTileKey<T>> for ArrayTiler<S>
Source§impl<S: Schema> TranslateMut for ArrayTiler<S>
impl<S: Schema> TranslateMut for ArrayTiler<S>
Source§fn translate_mut(&mut self, p: Point)
fn translate_mut(&mut self, p: Point)
Translates the shape by a
Point through mutation.Auto Trait Implementations§
impl<S> Freeze for ArrayTiler<S>
impl<S> !RefUnwindSafe for ArrayTiler<S>
impl<S> !Send for ArrayTiler<S>
impl<S> !Sync for ArrayTiler<S>
impl<S> Unpin for ArrayTiler<S>
impl<S> !UnwindSafe for ArrayTiler<S>
Blanket Implementations§
Source§impl<T> AlignRect for Twhere
T: AlignRectMut,
impl<T> AlignRect for Twhere
T: AlignRectMut,
Source§impl<T> AlignRectMut for Twhere
T: Translate,
impl<T> AlignRectMut for Twhere
T: Translate,
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<S, T> DrawBoxed<S> for T
impl<S, T> DrawBoxed<S> for T
Source§fn draw_boxed(self: Box<T>, recv: &mut DrawReceiver<S>) -> Result<(), Error>
fn draw_boxed(self: Box<T>, recv: &mut DrawReceiver<S>) -> Result<(), Error>
Draws
self inside recv.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].