pub struct BlockCollisionsState<'a> {
pub world: &'a World,
pub aabb: &'a Aabb,
pub entity_shape: VoxelShape,
pub cursor: Cursor3d,
/* private fields */
}Fields§
§world: &'a World§aabb: &'a Aabb§entity_shape: VoxelShape§cursor: Cursor3dImplementations§
Source§impl<'a> BlockCollisionsState<'a>
impl<'a> BlockCollisionsState<'a>
pub fn new( world: &'a World, aabb: &'a Aabb, context: EntityCollisionContext, ) -> Self
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BlockCollisionsState<'a>
impl<'a> !UnwindSafe for BlockCollisionsState<'a>
impl<'a> Forget for BlockCollisionsState<'a>
impl<'a> Freeze for BlockCollisionsState<'a>where
&'a World: Freeze,
&'a Aabb: Freeze,
*const [u64] is !null: Freeze,
PhantomData<[u64]>: Freeze,
*const [VoxelShape] is !null: Freeze,
PhantomData<[VoxelShape]>: Freeze,
*const [f64] is !null: Freeze,
PhantomData<[f64]>: Freeze,
*const u8 is !null: Freeze,
PhantomData<VoxelShape>: Freeze,
*const IndexMap<DataComponentKind, Option<DataComponent>> is !null: Freeze,
PhantomData<IndexMap<DataComponentKind, Option<DataComponent>>>: Freeze,
NonZero<u32>: Freeze,
PhantomData<(ChunkSectionPos, Section)>: Freeze,
PhantomData<(BlockState, &'static VoxelShape)>: Freeze,
impl<'a> Move for BlockCollisionsState<'a>
impl<'a> Send for BlockCollisionsState<'a>where
&'a World: Send,
&'a Aabb: Send,
BoxRaw<[u64]>: Send,
BoxRaw<[VoxelShape]>: Send,
BoxRaw<[f64]>: Send,
RawVecInner: Send,
BoxRaw<IndexMap<DataComponentKind, Option<DataComponent>>>: Send,
NonZero<u32>: Send,
&'static VoxelShape: Send,
impl<'a> Sync for BlockCollisionsState<'a>where
BoxRaw<dyn ChunkStorageTrait>: Sync,
RawTable<(ChunkPos, HashSet<Entity>)>: Sync,
RawTable<(MinecraftEntityId, Entity)>: Sync,
RawTable<usize>: Sync,
RawVecInner: Sync,
NonZero<usize>: Sync,
BoxRaw<str>: Sync,
BoxRaw<Identifier>: Sync,
RawTable<(String, NbtTag)>: Sync,
BoxRaw<Style>: Sync,
BoxRaw<FormattedText>: Sync,
BoxRaw<LevelBasedValue>: Sync,
BoxRaw<LootItemCondition>: Sync,
BoxRaw<IndexMap<DataComponentKind, Option<DataComponent>>>: Sync,
BoxRaw<VibrationParticle>: Sync,
BoxRaw<TrailParticle>: Sync,
RawTable<(String, String)>: Sync,
RawTable<(Identifier, RegistryType<NbtCompound>)>: Sync,
BoxRaw<[u64]>: Sync,
BoxRaw<[VoxelShape]>: Sync,
BoxRaw<[f64]>: Sync,
NonZero<u32>: Sync,
impl<'a> Unpin for BlockCollisionsState<'a>
impl<'a> UnsafeUnpin for BlockCollisionsState<'a>where
&'a World: UnsafeUnpin,
&'a Aabb: UnsafeUnpin,
*const [u64] is !null: UnsafeUnpin,
PhantomData<[u64]>: UnsafeUnpin,
*const [VoxelShape] is !null: UnsafeUnpin,
PhantomData<[VoxelShape]>: UnsafeUnpin,
*const [f64] is !null: UnsafeUnpin,
PhantomData<[f64]>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<VoxelShape>: UnsafeUnpin,
*const IndexMap<DataComponentKind, Option<DataComponent>> is !null: UnsafeUnpin,
PhantomData<IndexMap<DataComponentKind, Option<DataComponent>>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
PhantomData<(ChunkSectionPos, Section)>: UnsafeUnpin,
PhantomData<(BlockState, &'static VoxelShape)>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ConditionalSend for Twhere
T: Send,
§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.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§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> ⓘ
Source§impl<A, B> Interchangeable<A> for B
impl<A, B> Interchangeable<A> for B
fn interchangeable_into(self) -> A
fn interchangeable_from(other: A) -> B
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.