Enum rustfmt::OperationError
source · [−]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.
UnknownPrintConfigTopic(String)
An unknown print-config option was requested.
MinimalPathWithStdin
Attempt to generate a minimal config from standard input.
IoError(IoError)
An io error during reading or writing.
CheckWithStdin
Attempt to use –check with stdin, which isn’t currently supported.
EmitWithStdin
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