pub struct Rcso {
pub natoms: u32,
pub positions: Vec<[f64; 3]>,
pub forces: Option<Vec<[f64; 3]>>,
pub velocities: Option<Vec<[f64; 3]>>,
}Expand description
Decoded cooked numerics.
Fields§
§natoms: u32§positions: Vec<[f64; 3]>§forces: Option<Vec<[f64; 3]>>§velocities: Option<Vec<[f64; 3]>>Implementations§
Source§impl Rcso
impl Rcso
Sourcepub fn encode_frame(frame: &ConFrame) -> Result<Vec<u8>, ParseError>
pub fn encode_frame(frame: &ConFrame) -> Result<Vec<u8>, ParseError>
Pack one parsed frame. CON text stays the authority.
Sourcepub fn decode(bytes: &[u8]) -> Result<Self, ParseError>
pub fn decode(bytes: &[u8]) -> Result<Self, ParseError>
Decode a v1 RCSO blob.
Trait Implementations§
impl StructuralPartialEq for Rcso
Auto Trait Implementations§
impl Freeze for Rcso
impl RefUnwindSafe for Rcso
impl Send for Rcso
impl Sync for Rcso
impl Unpin for Rcso
impl UnsafeUnpin for Rcso
impl UnwindSafe for Rcso
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