You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to keep things a bit tidy, this issue is a feature request relating to #110 and #113
Here is the basics of the implementation:
#[derive(Debug,Default)]pubstructReadOptions{/// The format to read the file in.format:Format,/// The strictness level to use when reading the file.level:StrictnessLevel,/// Controls whether to capitalise the chains in the structure.capitalise_chains:bool,}implReadOptions{/// Constructs a new [`ReadOptions`] object with default values.pubfnnew() -> Self{Self::default()}/// Sets the format to read the file in.pubfnformat(&mutself,format:Format){self.format = format;}/// Sets the strictness level to use when reading the file.pubfnlevel(&mutself,level:StrictnessLevel){self.level = level;}/// Sets whether to capitalise the chains in the structure.pubfncapitalise_chains(&mutself,capitalise_chains:bool){self.capitalise_chains = capitalise_chains;}}
Essentially, it works in the same way as std::fs::OpenOptions
The text was updated successfully, but these errors were encountered:
Trying to keep things a bit tidy, this issue is a feature request relating to #110 and #113
Here is the basics of the implementation:
Essentially, it works in the same way as
std::fs::OpenOptions
The text was updated successfully, but these errors were encountered: