pub struct Sheet {
pub name: Option<String>,
pub residue: Option<Residue>,
pub lattice: LatticeType,
pub std_z: Option<f64>,
pub origin: Coord,
pub normal: Direction,
pub length: f64,
pub width: f64,
pub coords: Vec<Coord>,
}Expand description
A rectangular sheet.
Fields§
§name: Option<String>Name of component.
residue: Option<Residue>Optional residue placed at each coordinate. If not set the sheet describes a general collection of coordinates.
lattice: LatticeTypeLattice type used to construct the surface structure.
std_z: Option<f64>Standard deviation along z of coordinates. Added to the coordinates when construct
is called.
origin: CoordOrigin of the sheet. Located in the lower-left position of it.
normal: DirectionNormal vector of the sheet.
length: f64Length of the sheet along the x axis.
width: f64Length of the sheet along the y axis.
coords: Vec<Coord>List of coordinates belonging to the sheet. Relative to the `origin.
Implementations§
Trait Implementations§
Source§impl<'a> Component<'a> for Sheet
impl<'a> Component<'a> for Sheet
Source§fn box_size(&self) -> Coord
fn box_size(&self) -> Coord
Return the size of the object’s bounding box seen from origo. Read more
Source§fn iter_atoms(&self) -> AtomIterItem<'_>
fn iter_atoms(&self) -> AtomIterItem<'_>
Return an
Iterator over all atoms in the object as CurrentAtom objects.Source§impl<'de> Deserialize<'de> for Sheet
impl<'de> Deserialize<'de> for Sheet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Sheet> for ComponentEntry
impl From<Sheet> for ComponentEntry
Source§fn from(object: Sheet) -> ComponentEntry
fn from(object: Sheet) -> ComponentEntry
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Sheet
impl RefUnwindSafe for Sheet
impl Send for Sheet
impl Sync for Sheet
impl Unpin for Sheet
impl UnwindSafe for Sheet
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