pub struct ParticleBorrowMut<'a> { /* private fields */ }Expand description
A mutable borrow of all data relating to one particle type
Implementations§
Source§impl<'a> ParticleBorrowMut<'a>
impl<'a> ParticleBorrowMut<'a>
Sourcepub fn get_particle_id(&self) -> ParticleID
pub fn get_particle_id(&self) -> ParticleID
Get particle id
Sourcepub fn get_particle_count(&self) -> usize
pub fn get_particle_count(&self) -> usize
Get number of particles of this type
Sourcepub fn borrow_member(&self, name: &str) -> Option<FipsBorrow<'_>>
pub fn borrow_member(&self, name: &str) -> Option<FipsBorrow<'_>>
Borrow all data of a member of this particle type immutably
Sourcepub fn borrow_member_mut(&self, name: &str) -> Option<FipsBorrowMut<'_>>
pub fn borrow_member_mut(&self, name: &str) -> Option<FipsBorrowMut<'_>>
Borrow all data of a member of this particle type mutably
Auto Trait Implementations§
impl<'a> Freeze for ParticleBorrowMut<'a>
impl<'a> RefUnwindSafe for ParticleBorrowMut<'a>
impl<'a> !Send for ParticleBorrowMut<'a>
impl<'a> Sync for ParticleBorrowMut<'a>
impl<'a> Unpin for ParticleBorrowMut<'a>
impl<'a> UnwindSafe for ParticleBorrowMut<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more