pub struct CifWriteOptions { /* private fields */ }Expand description
Decisions that cannot be recovered from a lowered structure.
Implementations§
Source§impl CifWriteOptions
impl CifWriteOptions
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Starts with deterministic connection identifiers and no explicit block id.
A connection’s identifier is not retained by the bond graph, so a
canonical file numbers its connections in order. The numbering carries no
meaning of its own; Self::without_generated_connection_ids refuses
instead for a caller that wants nothing invented.
Sourcepub const fn without_generated_connection_ids(self) -> Self
pub const fn without_generated_connection_ids(self) -> Self
Refuses connectivity rather than numbering its connections.
Sourcepub fn with_extra_categories(self, text: impl Into<Box<str>>) -> Self
pub fn with_extra_categories(self, text: impl Into<Box<str>>) -> Self
Appends already-rendered mmCIF categories to the output.
For metadata the generic structure keeps in a typed extension (assemblies, non-crystallographic operators, space group) that this crate cannot see. The text must hold complete categories and no data-block header.
Sourcepub fn extra_categories(&self) -> Option<&str>
pub fn extra_categories(&self) -> Option<&str>
Rendered categories appended by the caller.
Sourcepub fn with_block_id(self, block_id: impl Into<Box<str>>) -> Self
pub fn with_block_id(self, block_id: impl Into<Box<str>>) -> Self
Uses this explicit data-block identifier instead of _entry.id.
Sourcepub const fn with_generated_connection_ids(self) -> Self
pub const fn with_generated_connection_ids(self) -> Self
Allows deterministic _struct_conn.id values when connectivity exists.
This is the default; it re-enables the choice after
Self::without_generated_connection_ids.
The connection’s own conn_type_id travels with the bond and is written
from it, so no class is chosen here.
Trait Implementations§
Source§impl Clone for CifWriteOptions
impl Clone for CifWriteOptions
Source§impl Debug for CifWriteOptions
impl Debug for CifWriteOptions
Source§impl Default for CifWriteOptions
impl Default for CifWriteOptions
impl Eq for CifWriteOptions
Source§impl PartialEq for CifWriteOptions
impl PartialEq for CifWriteOptions
impl StructuralPartialEq for CifWriteOptions
Auto Trait Implementations§
impl Freeze for CifWriteOptions
impl RefUnwindSafe for CifWriteOptions
impl Send for CifWriteOptions
impl Sync for CifWriteOptions
impl Unpin for CifWriteOptions
impl UnsafeUnpin for CifWriteOptions
impl UnwindSafe for CifWriteOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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