pub struct RawTile<S: Schema> { /* private fields */ }
Expand description
Implementations§
Source§impl<S: Schema + Any> RawTile<S>
impl<S: Schema + Any> RawTile<S>
Sourcepub fn downcast_inner_ref<T: Tileable<S>>(&self) -> Option<&T>
pub fn downcast_inner_ref<T: Tileable<S>>(&self) -> Option<&T>
Returns a reference to the inner object if it is of type T, or None if it isn’t.
Sourcepub fn downcast_inner_mut<T: Tileable<S>>(&mut self) -> Option<&mut T>
pub fn downcast_inner_mut<T: Tileable<S>>(&mut self) -> Option<&mut T>
Returns a mutable reference to the inner object if it is of type T, or None if it isn’t.
Trait Implementations§
Source§impl<S: Schema> TranslateMut for RawTile<S>
impl<S: Schema> TranslateMut for RawTile<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 RawTile<S>
impl<S> !RefUnwindSafe for RawTile<S>
impl<S> !Send for RawTile<S>
impl<S> !Sync for RawTile<S>
impl<S> Unpin for RawTile<S>
impl<S> !UnwindSafe for RawTile<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
].