#[repr(i32)]pub enum ConnectionType {
Unspecified = 0,
Hbond = 1,
Disulfide = 2,
Clash = 3,
Band = 4,
}Expand description
Kind of structural connection between two endpoints. The host maps each type onto its own viz channel.
Variants§
Implementations§
Source§impl ConnectionType
impl ConnectionType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ConnectionType
impl Clone for ConnectionType
Source§fn clone(&self) -> ConnectionType
fn clone(&self) -> ConnectionType
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 ConnectionType
Source§impl Debug for ConnectionType
impl Debug for ConnectionType
Source§impl Default for ConnectionType
impl Default for ConnectionType
Source§fn default() -> ConnectionType
fn default() -> ConnectionType
Returns the “default value” for a type. Read more
impl Eq for ConnectionType
Source§impl From<ConnectionType> for i32
impl From<ConnectionType> for i32
Source§fn from(value: ConnectionType) -> i32
fn from(value: ConnectionType) -> i32
Converts to this type from the input type.
Source§impl Hash for ConnectionType
impl Hash for ConnectionType
Source§impl Ord for ConnectionType
impl Ord for ConnectionType
Source§fn cmp(&self, other: &ConnectionType) -> Ordering
fn cmp(&self, other: &ConnectionType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConnectionType
impl PartialEq for ConnectionType
Source§fn eq(&self, other: &ConnectionType) -> bool
fn eq(&self, other: &ConnectionType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ConnectionType
impl PartialOrd for ConnectionType
impl StructuralPartialEq for ConnectionType
Source§impl TryFrom<i32> for ConnectionType
impl TryFrom<i32> for ConnectionType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ConnectionType, UnknownEnumValue>
fn try_from(value: i32) -> Result<ConnectionType, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ConnectionType
impl RefUnwindSafe for ConnectionType
impl Send for ConnectionType
impl Sync for ConnectionType
impl Unpin for ConnectionType
impl UnsafeUnpin for ConnectionType
impl UnwindSafe for ConnectionType
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