Home
last modified time | relevance | path

Searched refs:SetError (Results 1 – 4 of 4) sorted by relevance

/wasmtime-44.0.1/cranelift/codegen/src/
H A Dsettings.rs214 Err(_) => Err(SetError::BadName(name.to_string())), in lookup()
227 _ => Err(SetError::BadValue("bool".to_string())), in parse_bool_value()
234 None => Err(SetError::BadValue(format!( in parse_enum_value()
254 _ => Err(SetError::BadType), in enable()
282 pub enum SetError { enum
293 impl core::error::Error for SetError {} implementation
295 impl fmt::Display for SetError { implementation
299 SetError::BadType => { in fmt()
302 SetError::BadValue(value) => { in fmt()
310 pub type SetResult<T> = Result<T, SetError>;
[all …]
/wasmtime-44.0.1/cranelift/reader/src/
H A Disaspec.rs12 use cranelift_codegen::settings::{Configurable, Flags, SetError};
115 Err(SetError::BadName(name)) => Err(ParseOptionError::UnknownFlag { loc, name }), in parse_option()
120 Err(SetError::BadName(name)) => Err(ParseOptionError::UnknownValue { in parse_option()
125 Err(SetError::BadType) => option_err!(loc, "invalid setting type: '{}'", opt), in parse_option()
126 Err(SetError::BadValue(expected)) => { in parse_option()
/wasmtime-44.0.1/crates/cranelift/src/
H A Disa_builder.rs2 use cranelift_codegen::settings::{self, Configurable, Flags, SetError};
74 SetError::BadName(_) => { in set()
86 SetError::BadName(_) => { in enable()
/wasmtime-44.0.1/cranelift/module/src/
H A Dmodule.rs15 use cranelift_codegen::settings::SetError;
302 Flag(SetError),
371 impl std::convert::From<SetError> for ModuleError {
372 fn from(source: SetError) -> Self { in from()