pub enum ImportField {
View,
Format,
Extent,
Initial,
Claim,
FinalState,
}Expand description
Which field of a repeated import declaration disagreed with the first one.
Carried by GraphError::ImportDeclarationConflict and
GraphError::BufferImportDeclarationConflict so a caller can tell the
kinds of disagreement apart without parsing a message: two subsystems
disagreeing about the state an image arrives in is a synchronisation bug in
one of them, and two disagreeing about which view they bind is usually one
of them importing the wrong thing entirely.
It spells ImportedImage’s fields, of which an ImportedBuffer has
only Initial and FinalState; the
handle itself is absent because it is what the two declarations are matched
on, so it cannot be what they differ in. Display prints
the field’s name as it is spelled in the struct, so a message points at
something a reader can go and look at.
Variants§
Trait Implementations§
Source§impl Clone for ImportField
impl Clone for ImportField
Source§fn clone(&self) -> ImportField
fn clone(&self) -> ImportField
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more