ferritin_pymol::pymolparsing::parsing

Struct AtomInfo

source
pub struct AtomInfo {
Show 48 fields pub resv: i32, pub chain: String, pub alt: String, pub resi: String, pub segi: String, pub resn: String, pub name: String, pub elem: Element, pub text_type: String, pub label: String, pub ss_type: String, pub is_hydrogen: bool, pub custom_type: i32, pub priority: i32, pub b: f64, pub q: f64, pub vdw: f64, pub partial_charge: f64, pub formal_charge: i32, pub is_hetatm: bool, pub vis_rep: RepBitmask, pub color: i32, pub id: i32, pub cartoon: i32, pub flags: i64, pub is_bonded: bool, pub chem_flag: i32, pub geom: i32, pub valence: i32, pub is_masked: bool, pub is_protected: bool, pub protons: i32, pub unique_id: i64, pub stereo: i8, pub discrete_state: i32, pub elec_radius: f64, pub rank: i32, pub hb_donor: bool, pub hb_acceptor: bool, pub atomic_color: i32, pub has_setting: bool, pub anisou_1: f32, pub anisou_2: f32, pub anisou_3: f32, pub anisou_4: f32, pub anisou_5: f32, pub anisou_6: f32, pub custom: String,
}
Expand description

AtomInfo

This struct contains various properties of an atom, including its position, chemical properties, and visualization settings.

§Pymol Source

Fields§

§resv: i32

Residue sequence number

§chain: String

Chain identifier

§alt: String

Alternate location indicator

§resi: String

Residue identifier

§segi: String

Segment identifier

§resn: String

Residue name

§name: String

Atom name

§elem: Element

Element symbol

§text_type: String

Text type

§label: String

Label text

§ss_type: String

Secondary structure type

§is_hydrogen: bool

Flag indicating if the atom is hydrogen

§custom_type: i32

Custom type identifier

§priority: i32

Priority value

§b: f64

B-factor (temperature factor)

§q: f64

Occupancy

§vdw: f64

Van der Waals radius

§partial_charge: f64

Partial charge

§formal_charge: i32

Formal charge

§is_hetatm: bool

Flag indicating if the atom is a heteroatom

§vis_rep: RepBitmask

Visualization representation

§color: i32

Color index (color is an index into the color vec)

§id: i32

Atom ID

§cartoon: i32

Cartoon representation type (0 = default which is auto (use ssType))

§flags: i64

Various flags

§is_bonded: bool

Flag indicating if the atom is bonded

§chem_flag: i32

Chemical flag (not sure what this is)

§geom: i32

Geometry type (cAtomInfo*)

§valence: i32

Valence (number of explicit and implicit neighbors, independent of bond order)

§is_masked: bool

Flag indicating if the atom is masked

§is_protected: bool

Flag indicating if the atom is protected

§protons: i32

Number of protons (atomic number)

§unique_id: i64

Unique identifier

§stereo: i8

Stereochemistry indicator

§discrete_state: i32

Discrete state

§elec_radius: f64

Electronic radius

§rank: i32

Rank

§hb_donor: bool

Hydrogen bond donor flag

§hb_acceptor: bool

Hydrogen bond acceptor flag

§atomic_color: i32

Atomic color

§has_setting: bool

Flag indicating if the atom has custom settings

§anisou_1: f32

Anisotropic temperature factor 1

§anisou_2: f32

Anisotropic temperature factor 2

§anisou_3: f32

Anisotropic temperature factor 3

§anisou_4: f32

Anisotropic temperature factor 4

§anisou_5: f32

Anisotropic temperature factor 5

§anisou_6: f32

Anisotropic temperature factor 6

§custom: String

Custom data string

Implementations§

source§

impl AtomInfo

source

pub fn is_metal()

is the atom a metal?

source

pub fn is_visible()

source

pub fn atom_info_brack_residue()

source

pub fn to_pdbtbx_atom(&self) -> Atom

Conversion to PDBTBX

Trait Implementations§

source§

impl Debug for AtomInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for AtomInfo

source§

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 Serialize for AtomInfo

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T