pub struct ImportFormat {
pub label: &'static str,
pub extensions: &'static [&'static str],
}Expand description
One source-model file format an engine imports (spec §2.2).
This names a format for a file picker’s filter. It is not a
validity test: wds and uds both claim the inp extension with
wholly incompatible contents, so deciding whether a file really is a
model of this format is the owning engine’s job.
Fields§
§label: &'static strHuman-facing format name, e.g. “EPANET input file”.
extensions: &'static [&'static str]Filename extensions, lowercase ASCII with no leading dot.
Trait Implementations§
Source§impl Clone for ImportFormat
impl Clone for ImportFormat
Source§fn clone(&self) -> ImportFormat
fn clone(&self) -> ImportFormat
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 ImportFormat
Source§impl Debug for ImportFormat
impl Debug for ImportFormat
impl Eq for ImportFormat
Source§impl PartialEq for ImportFormat
impl PartialEq for ImportFormat
Source§impl Serialize for ImportFormat
impl Serialize for ImportFormat
impl StructuralPartialEq for ImportFormat
Auto Trait Implementations§
impl Freeze for ImportFormat
impl RefUnwindSafe for ImportFormat
impl Send for ImportFormat
impl Sync for ImportFormat
impl Unpin for ImportFormat
impl UnsafeUnpin for ImportFormat
impl UnwindSafe for ImportFormat
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