Enum rustfmt::OperationError [−][src]
pub enum OperationError {
UnknownHelpTopic(String),
UnknownPrintConfigTopic(String),
MinimalPathWithStdin,
IoError(IoError),
CheckWithStdin,
EmitWithStdin,
}
Expand description
Rustfmt operations errors.
Variants
UnknownHelpTopic(String)
An unknown help topic was requested.
Tuple Fields of UnknownHelpTopic
0: String
UnknownPrintConfigTopic(String)
An unknown print-config option was requested.
Tuple Fields of UnknownPrintConfigTopic
0: String
Attempt to generate a minimal config from standard input.
IoError(IoError)
An io error during reading or writing.
Tuple Fields of IoError
0: IoError
Attempt to use –check with stdin, which isn’t currently supported.
Attempt to use –emit=json with stdin, which isn’t currently supported.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for OperationError
impl Send for OperationError
impl Sync for OperationError
impl Unpin for OperationError
impl !UnwindSafe for OperationError
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
UnknownHelpTopic
: 24 bytesUnknownPrintConfigTopic
: 24 bytesMinimalPathWithStdin
: 0 bytesIoError
: 16 bytesCheckWithStdin
: 0 bytesEmitWithStdin
: 0 bytes