pub struct Ccp4Record {
pub raw: [u8; 80],
}Expand description
A single CCP4 symmetry record — an 80-character text line containing space group symmetry operators.
In the CCP4 convention, the extended header stores symmetry operators
as human-readable text, one operator per line, separated by * (asterisk)
and grouped into 80-character lines. This struct stores the raw text
of each line.
Fields§
§raw: [u8; 80]Raw 80-byte symmetry line (may contain multiple operators separated
by *, padded with spaces).
Implementations§
Source§impl Ccp4Record
impl Ccp4Record
Sourcepub fn from_bytes(bytes: &[u8]) -> Option<Self>
pub fn from_bytes(bytes: &[u8]) -> Option<Self>
Parse a single CCP4 record from bytes.
Returns None if bytes is shorter than CCP4_RECORD_SIZE.
Trait Implementations§
Source§impl Clone for Ccp4Record
impl Clone for Ccp4Record
Source§fn clone(&self) -> Ccp4Record
fn clone(&self) -> Ccp4Record
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 moreSource§impl Debug for Ccp4Record
impl Debug for Ccp4Record
Source§impl PartialEq for Ccp4Record
impl PartialEq for Ccp4Record
Source§fn eq(&self, other: &Ccp4Record) -> bool
fn eq(&self, other: &Ccp4Record) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Ccp4Record
Auto Trait Implementations§
impl Freeze for Ccp4Record
impl RefUnwindSafe for Ccp4Record
impl Send for Ccp4Record
impl Sync for Ccp4Record
impl Unpin for Ccp4Record
impl UnsafeUnpin for Ccp4Record
impl UnwindSafe for Ccp4Record
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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