pub struct ShadeSpec {
pub atoms: Option<Vec<f64>>,
pub bonds: Option<Vec<f64>>,
pub colormap: Option<String>,
pub vmin: f64,
pub vmax: f64,
}Expand description
Per-atom / per-bond colormap scores (+ legacy window fields on the mol).
Prefer putting colormap / vmin / vmax in cascading MolOpts::shade;
values here still apply as local leaf overrides for compat.
Fields§
§atoms: Option<Vec<f64>>§bonds: Option<Vec<f64>>§colormap: Option<String>§vmin: f64§vmax: f64Implementations§
Source§impl ShadeSpec
impl ShadeSpec
Sourcepub fn style(&self) -> ShadeStyle
pub fn style(&self) -> ShadeStyle
Hoist legacy window fields into a cascading ShadeStyle.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShadeSpec
impl<'de> Deserialize<'de> for ShadeSpec
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
Auto Trait Implementations§
impl Freeze for ShadeSpec
impl RefUnwindSafe for ShadeSpec
impl Send for ShadeSpec
impl Sync for ShadeSpec
impl Unpin for ShadeSpec
impl UnsafeUnpin for ShadeSpec
impl UnwindSafe for ShadeSpec
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