Struct ferritin_molviewspec::molviewspec::nodes::Node
source · pub struct Node {
pub kind: KindT,
pub params: Option<NodeParams>,
pub children: Option<Vec<Node>>,
}
Expand description
Node
This is the core datastructure for generating MSVJ files. Each node type can have a type, params, and children.
Methods derived from the Python API found here
Fields§
§kind: KindT
§params: Option<NodeParams>
§children: Option<Vec<Node>>
Implementations§
source§impl Node
impl Node
pub fn new(kind: KindT, params: Option<NodeParams>) -> Node
pub fn add_child(&mut self, node: Node)
pub fn get_kind(&self) -> &KindT
sourcepub fn parse(&mut self, params: ParseParams) -> Option<&mut Node>
pub fn parse(&mut self, params: ParseParams) -> Option<&mut Node>
Parse a Download Node
sourcepub fn model_structure()
pub fn model_structure()
Create a structure for the deposited coordinates. :param model_index: 0-based model index in case multiple NMR frames are present :param block_index: 0-based block index in case multiple mmCIF or SDF data blocks are present :param block_header: Reference a specific mmCIF or SDF data block by its block header :return: a builder that handles operations at structure level
sourcepub fn assembly_structure(
&mut self,
params: StructureParams,
) -> Option<&mut Node>
pub fn assembly_structure( &mut self, params: StructureParams, ) -> Option<&mut Node>
Parse a Download Node
sourcepub fn symmetry_structure(
&mut self,
params: StructureParams,
) -> Option<&mut Node>
pub fn symmetry_structure( &mut self, params: StructureParams, ) -> Option<&mut Node>
Symmetry Structure
sourcepub fn symmetry_mates_structure(
&mut self,
params: StructureParams,
) -> Option<&mut Node>
pub fn symmetry_mates_structure( &mut self, params: StructureParams, ) -> Option<&mut Node>
Parse a Download Node
sourcepub fn component(&mut self, selector: ComponentSelector) -> Option<&mut Node>
pub fn component(&mut self, selector: ComponentSelector) -> Option<&mut Node>
Create a Component
pub fn component_from_uri()
pub fn component_from_source()
pub fn label_from_uri()
pub fn label_from_source()
pub fn tooltip_from_uri()
pub fn tooltip_from_source()
pub fn transform(&mut self, params: TransformParams) -> Option<&mut Node>
pub fn _is_rotation_matrix()
sourcepub fn representation(
&mut self,
representation_type: RepresentationTypeT,
) -> Option<&mut Node>
pub fn representation( &mut self, representation_type: RepresentationTypeT, ) -> Option<&mut Node>
Add a representation for this component. :param type: the type of representation, defaults to ‘cartoon’ :return: a builder that handles operations at representation level
pub fn label(&mut self, label: String) -> Option<&mut Node>
pub fn tooltip()
pub fn focus()
pub fn color_from_source()
pub fn color_from_uri()
pub fn color( &mut self, color: ColorT, selector: ComponentSelector, ) -> Option<&mut Node>
pub fn sphere()
pub fn line()
Trait Implementations§
source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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>,
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)