#[non_exhaustive]pub struct GridFormatInfo {
pub format: FormatInfo,
pub label: &'static str,
pub family: NetworkFamily,
pub can_read: bool,
}Expand description
A discoverable grid format with its reader and writer capabilities.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.format: FormatInfo§label: &'static str§family: NetworkFamilyThe primary catalog grouping. Use Self::supports_family when
selecting formats for a network: one token may support both families.
can_read: boolImplementations§
Source§impl GridFormatInfo
impl GridFormatInfo
Sourcepub fn supports_family(&self, family: NetworkFamily) -> bool
pub fn supports_family(&self, family: NetworkFamily) -> bool
Whether a format profile accepts this electrical network family.
MG-RAVENS accepts both families under one token; its parsed value’s
family follows the document’s classes. Other catalog entries accept
their primary Self::family.
Trait Implementations§
Source§impl Clone for GridFormatInfo
impl Clone for GridFormatInfo
Source§fn clone(&self) -> GridFormatInfo
fn clone(&self) -> GridFormatInfo
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 GridFormatInfo
Source§impl Debug for GridFormatInfo
impl Debug for GridFormatInfo
Auto Trait Implementations§
impl Freeze for GridFormatInfo
impl RefUnwindSafe for GridFormatInfo
impl Send for GridFormatInfo
impl Sync for GridFormatInfo
impl Unpin for GridFormatInfo
impl UnsafeUnpin for GridFormatInfo
impl UnwindSafe for GridFormatInfo
Blanket Implementations§
impl<T> Allocation for T
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