pub struct RegionSpec {
pub style: RegionStyle,
pub atoms: Vec<u32>,
pub exclude: Vec<u32>,
pub fill: Option<FillSpec>,
pub stroke: Option<StrokeSpec>,
pub text: Option<MolText>,
pub z: Option<i32>,
}Expand description
One region highlight on a mol.
Fields§
§style: RegionStyle§atoms: Vec<u32>Atom indices that must lie inside the region.
exclude: Vec<u32>Atom indices that must stay outside.
fill: Option<FillSpec>§stroke: Option<StrokeSpec>§text: Option<MolText>§z: Option<i32>Optional z-order override (lower = further back). Default band: region base.
Trait Implementations§
Source§impl Clone for RegionSpec
impl Clone for RegionSpec
Source§fn clone(&self) -> RegionSpec
fn clone(&self) -> RegionSpec
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 RegionSpec
impl Debug for RegionSpec
Source§impl<'de> Deserialize<'de> for RegionSpec
impl<'de> Deserialize<'de> for RegionSpec
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 PartialEq for RegionSpec
impl PartialEq for RegionSpec
Source§impl Serialize for RegionSpec
impl Serialize for RegionSpec
impl StructuralPartialEq for RegionSpec
Auto Trait Implementations§
impl Freeze for RegionSpec
impl RefUnwindSafe for RegionSpec
impl Send for RegionSpec
impl Sync for RegionSpec
impl Unpin for RegionSpec
impl UnsafeUnpin for RegionSpec
impl UnwindSafe for RegionSpec
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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