pub struct Particle {
pub type: ParticleType,
pub data: ParticleData,
}Expand description
Named type Particle.
Fields§
§type: ParticleTypetype
data: ParticleDatadata
Trait Implementations§
Source§impl Decode for Particle
Available on crate feature v26_2 only.
impl Decode for Particle
Available on crate feature
v26_2 only.Source§fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Source§impl Encode for Particle
Available on crate feature v26_2 only.
impl Encode for Particle
Available on crate feature
v26_2 only.Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.impl StructuralPartialEq for Particle
Auto Trait Implementations§
impl Forget for Particle
impl Freeze for Particle
impl Move for Particle
impl RefUnwindSafe for Particle
impl Send for Particle
impl Sync for Particle
impl Unpin for Particle
impl UnsafeUnpin for Particle
impl UnwindSafe for Particle
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