Module ferritin_pymol::pymolparsing::representation
source · Expand description
This module provides a bitmask representation for various types of 3D molecular visualizations.
Note: this should probably be moved to its own crate.
It defines a set of flags that can be combined to represent different visual elements in a molecular structure, such as cylinders, spheres, surfaces, and more.
The RepBitmask
struct allows for efficient storage and manipulation of these flags,
while the RepType
enum provides a way to refer to individual representation types.
§Examples
use ferritin_pymol::pymolparsing::representation::RepBitmask;
let mut reps = RepBitmask::new();
reps.insert(RepBitmask::CYL | RepBitmask::SPHERE);
assert!(reps.contains(RepBitmask::CYL));
assert!(reps.contains(RepBitmask::SPHERE));
Structs§
Enums§
- First, define an enum for all representation types