#[non_exhaustive]pub enum ValenceErrorKind {
ExplicitValenceTooHigh,
AromaticValenceNotAllowed,
UnreasonableFormalCharge,
}Expand description
价键校验失败的类别。
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ExplicitValenceTooHigh
显式价超出该元素允许的最大值
AromaticValenceNotAllowed
芳香原子的显式价不等于任何允许的价态
UnreasonableFormalCharge
形式电荷不合理(仅 H 的特殊分支)
Trait Implementations§
Source§impl Clone for ValenceErrorKind
impl Clone for ValenceErrorKind
Source§fn clone(&self) -> ValenceErrorKind
fn clone(&self) -> ValenceErrorKind
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 moreimpl Copy for ValenceErrorKind
Source§impl Debug for ValenceErrorKind
impl Debug for ValenceErrorKind
impl Eq for ValenceErrorKind
Source§impl PartialEq for ValenceErrorKind
impl PartialEq for ValenceErrorKind
impl StructuralPartialEq for ValenceErrorKind
Auto Trait Implementations§
impl Freeze for ValenceErrorKind
impl RefUnwindSafe for ValenceErrorKind
impl Send for ValenceErrorKind
impl Sync for ValenceErrorKind
impl Unpin for ValenceErrorKind
impl UnsafeUnpin for ValenceErrorKind
impl UnwindSafe for ValenceErrorKind
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