pub struct SpawnEffect {
pub template: AssetId,
pub transform: Transform,
pub lifetime: Option<f32>,
}Expand description
A requested copy of a template.
Fields§
§template: AssetIdThe template to copy.
transform: TransformWhere the copy starts.
lifetime: Option<f32>Seconds the copy lives, or None for no limit.
Trait Implementations§
Source§impl Clone for SpawnEffect
impl Clone for SpawnEffect
Source§fn clone(&self) -> SpawnEffect
fn clone(&self) -> SpawnEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SpawnEffect
impl RefUnwindSafe for SpawnEffect
impl Send for SpawnEffect
impl Sync for SpawnEffect
impl Unpin for SpawnEffect
impl UnsafeUnpin for SpawnEffect
impl UnwindSafe for SpawnEffect
Blanket Implementations§
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