Type Alias bevy::ecs::system::BoxedSystem
pub type BoxedSystem<In = (), Out = ()> = Box<dyn System<In = In, Out = Out>, Global>;
Expand description
A convenience type alias for a boxed System
trait object.
Aliased Type§
struct BoxedSystem<In = (), Out = ()>(/* private fields */);
Trait Implementations§
§impl<T> AsyncBufRead for Box<T, Global>where
T: AsyncBufRead + Unpin + ?Sized,
impl<T> AsyncBufRead for Box<T, Global>where T: AsyncBufRead + Unpin + ?Sized,
§impl<T> AsyncRead for Box<T, Global>where
T: AsyncRead + Unpin + ?Sized,
impl<T> AsyncRead for Box<T, Global>where T: AsyncRead + Unpin + ?Sized,
§impl<T> AsyncWrite for Box<T, Global>where
T: AsyncWrite + Unpin + ?Sized,
impl<T> AsyncWrite for Box<T, Global>where T: AsyncWrite + Unpin + ?Sized,
§fn poll_write(
self: Pin<&mut Box<T, Global>>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize, Error>>
fn poll_write( self: Pin<&mut Box<T, Global>>, cx: &mut Context<'_>, buf: &[u8] ) -> Poll<Result<usize, Error>>
Attempt to write bytes from
buf
into the object. Read more§fn poll_write_vectored(
self: Pin<&mut Box<T, Global>>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize, Error>>
fn poll_write_vectored( self: Pin<&mut Box<T, Global>>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>] ) -> Poll<Result<usize, Error>>
Attempt to write bytes from
bufs
into the object using vectored
IO operations. Read more§impl<T> CalculateSizeFor for Box<T, Global>where
T: CalculateSizeFor + ?Sized,
impl<T> CalculateSizeFor for Box<T, Global>where T: CalculateSizeFor + ?Sized,
§fn calculate_size_for(nr_of_el: u64) -> NonZeroU64
fn calculate_size_for(nr_of_el: u64) -> NonZeroU64
Returns the size of
Self
assuming the (contained) runtime-sized array has nr_of_el
elements1.0.0 · source§impl<T, A> Clone for Box<T, A>where
T: Clone,
A: Allocator + Clone,
impl<T, A> Clone for Box<T, A>where T: Clone, A: Allocator + Clone,
source§fn clone(&self) -> Box<T, A>
fn clone(&self) -> Box<T, A>
Returns a new box with a clone()
of this box’s contents.
Examples
let x = Box::new(5);
let y = x.clone();
// The value is the same
assert_eq!(x, y);
// But they are unique objects
assert_ne!(&*x as *const i32, &*y as *const i32);
source§fn clone_from(&mut self, source: &Box<T, A>)
fn clone_from(&mut self, source: &Box<T, A>)
Copies source
’s contents into self
without creating a new allocation.
Examples
let x = Box::new(5);
let mut y = Box::new(10);
let yp: *const i32 = &*y;
y.clone_from(&x);
// The value is the same
assert_eq!(x, y);
// And no allocation occurred
assert_eq!(yp, &*y);
§impl<T> CreateFrom for Box<T, Global>where
T: CreateFrom + ?Sized,
impl<T> CreateFrom for Box<T, Global>where T: CreateFrom + ?Sized,
source§impl<'de, T> Deserialize<'de> for Box<T, Global>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Box<T, Global>where T: Deserialize<'de>,
source§fn deserialize<D>(
deserializer: D
) -> Result<Box<T, Global>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Box<T, Global>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
1.8.0 · source§impl<T> Error for Box<T, Global>where
T: Error,
impl<T> Error for Box<T, Global>where T: Error,
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.36.0 · source§impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static,
impl<F, A> Future for Box<F, A>where F: Future + Unpin + ?Sized, A: Allocator + 'static,
§impl IntoSystemConfigs<()> for Box<dyn System<In = (), Out = ()>, Global>
impl IntoSystemConfigs<()> for Box<dyn System<In = (), Out = ()>, Global>
§fn into_configs(self) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
fn into_configs(self) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
Convert into a
SystemConfigs
.§fn in_set(
self,
set: impl SystemSet
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
fn in_set( self, set: impl SystemSet ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
Add these systems to the provided
set
.§fn before<M>(
self,
set: impl IntoSystemSet<M>
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
fn before<M>( self, set: impl IntoSystemSet<M> ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
Run before all systems in
set
. Read more§fn after<M>(
self,
set: impl IntoSystemSet<M>
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
fn after<M>( self, set: impl IntoSystemSet<M> ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
Run after all systems in
set
. Read more§fn distributive_run_if<M>(
self,
condition: impl Condition<M, ()> + Clone
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
fn distributive_run_if<M>( self, condition: impl Condition<M, ()> + Clone ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
Add a run condition to each contained system. Read more
§fn run_if<M>(
self,
condition: impl Condition<M, ()>
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
fn run_if<M>( self, condition: impl Condition<M, ()> ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
§fn ambiguous_with<M>(
self,
set: impl IntoSystemSet<M>
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
fn ambiguous_with<M>( self, set: impl IntoSystemSet<M> ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
Suppress warnings and errors that would result from these systems having ambiguities
(conflicting access but indeterminate order) with systems in
set
.§fn ambiguous_with_all(
self
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
fn ambiguous_with_all( self ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>
Suppress warnings and errors that would result from these systems having ambiguities
(conflicting access but indeterminate order) with any other system.
source§impl<T> Serialize for Box<T, Global>where
T: Serialize + ?Sized,
impl<T> Serialize for Box<T, Global>where T: Serialize + ?Sized,
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl<T> ShaderSize for Box<T, Global>where
T: ShaderSize + ?Sized,
impl<T> ShaderSize for Box<T, Global>where T: ShaderSize + ?Sized,
§const SHADER_SIZE: NonZeroU64 = T::SHADER_SIZE
const SHADER_SIZE: NonZeroU64 = T::SHADER_SIZE
Represents WGSL Size (equivalent to
ShaderType::min_size
)§impl<T> ShaderType for Box<T, Global>where
T: ShaderType + ?Sized,
impl<T> ShaderType for Box<T, Global>where T: ShaderType + ?Sized,
§fn size(&self) -> NonZeroU64
fn size(&self) -> NonZeroU64
Returns the size of
Self
at runtime Read more§fn min_size() -> NonZeroU64
fn min_size() -> NonZeroU64
§fn assert_uniform_compat()
fn assert_uniform_compat()
Asserts that
Self
meets the requirements of the
uniform address space restrictions on stored values and the
uniform address space layout constraints Read more§impl<S> Stream for Box<S, Global>where
S: Stream + Unpin + ?Sized,
impl<S> Stream for Box<S, Global>where S: Stream + Unpin + ?Sized,
§fn poll_next(
self: Pin<&mut Box<S, Global>>,
cx: &mut Context<'_>
) -> Poll<Option<<Box<S, Global> as Stream>::Item>>
fn poll_next( self: Pin<&mut Box<S, Global>>, cx: &mut Context<'_> ) -> Poll<Option<<Box<S, Global> as Stream>::Item>>
Attempt to pull out the next value of this stream, registering the
current task for wakeup if the value is not yet available, and returning
None
if the stream is exhausted. Read more§impl<S> Subscriber for Box<S, Global>where
S: Subscriber + ?Sized,
impl<S> Subscriber for Box<S, Global>where S: Subscriber + ?Sized,
§fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
§fn max_level_hint(&self) -> Option<LevelFilter>
fn max_level_hint(&self) -> Option<LevelFilter>
Returns the highest verbosity level that this
Subscriber
will
enable, or None
, if the subscriber does not implement level-based
filtering or chooses not to implement this method. Read more§fn new_span(&self, span: &Attributes<'_>) -> Id
fn new_span(&self, span: &Attributes<'_>) -> Id
§fn record_follows_from(&self, span: &Id, follows: &Id)
fn record_follows_from(&self, span: &Id, follows: &Id)
§fn event_enabled(&self, event: &Event<'_>) -> bool
fn event_enabled(&self, event: &Event<'_>) -> bool
§fn clone_span(&self, id: &Id) -> Id
fn clone_span(&self, id: &Id) -> Id
§fn drop_span(&self, id: Id)
fn drop_span(&self, id: Id)
👎Deprecated since 0.1.2: use
Subscriber::try_close
insteadThis method is deprecated. Read more
§fn current_span(&self) -> Current
fn current_span(&self) -> Current
Returns a type representing this subscriber’s view of the current span. Read more
§unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>
unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>
If
self
is the same type as the provided TypeId
, returns an untyped
*const
pointer to that type. Otherwise, returns None
. Read more