Home
last modified time | relevance | path

Searched refs:ValueErrorKind (Results 1 – 19 of 19) sorted by relevance

/dports/graphics/librsvg2-rust/librsvg-2.52.8/src/
H A Derror.rs27 pub enum ValueErrorKind { enum
38 impl ValueErrorKind { impl
39 pub fn parse_error(s: &str) -> ValueErrorKind { in parse_error() argument
40 ValueErrorKind::Parse(s.to_string()) in parse_error()
43 pub fn value_error(s: &str) -> ValueErrorKind { in value_error() argument
44 ValueErrorKind::Value(s.to_string()) in value_error()
48 impl fmt::Display for ValueErrorKind { implementation
72 ValueErrorKind::parse_error(msg) in from()
80 pub err: ValueErrorKind,
329 impl From<NodeIdError> for ValueErrorKind { implementation
[all …]
H A Dcond.rs23 pub fn from_attribute(s: &str) -> Result<RequiredExtensions, ValueErrorKind> { in from_attribute() argument
67 pub fn from_attribute(s: &str) -> Result<RequiredFeatures, ValueErrorKind> { in from_attribute() argument
99 pub fn from_attribute(s: &str) -> Result<SystemLanguage, ValueErrorKind> { in from_attribute() argument
105 ValueErrorKind::parse_error(&format!("invalid language tag: \"{}\"", e)) in from_attribute()
H A Dparsers.rs37 pub fn finite_f32(n: f32) -> Result<f32, ValueErrorKind> { in finite_f32() argument
41 Err(ValueErrorKind::Value("expected finite number".to_string())) in finite_f32()
72 Err(loc.new_custom_error(ValueErrorKind::value_error("expected finite number"))) in parse()
88 Err(loc.new_custom_error(ValueErrorKind::value_error("expected non negative number"))) in parse()
154 Err(loc.new_custom_error(ValueErrorKind::value_error("expected unsigned number"))) in parse()
180 Err(loc.new_custom_error(ValueErrorKind::value_error("expected more numbers"))) in parse()
H A Dstyle.rs23 fn parse(value: &str) -> Result<StyleType, ValueErrorKind> { in parse() argument
33 Err(ValueErrorKind::parse_error( in parse()
H A Dcolor.rs22 cssparser::Color::CurrentColor => Err(loc.new_custom_error(ValueErrorKind::Value( in parse()
H A Dfilter.rs11 use crate::error::ValueErrorKind;
194 .map_err(|e| loc.new_custom_error(ValueErrorKind::from(e)))?; in parse()
H A Dviewbox.rs52 Err(loc.new_custom_error(ValueErrorKind::value_error( in parse()
H A Diri.rs42 NodeId::parse(&url).map_err(|e| loc.new_custom_error(ValueErrorKind::from(e)))?; in parse()
H A Dlib.rs237 pub use crate::error::ValueErrorKind;
H A Dpaint_server.rs9 use crate::error::{AcquireError, NodeIdError, ParseError, ValueErrorKind};
104 .map_err(|e: NodeIdError| -> ValueErrorKind { e.into() }) in parse()
H A Dlength.rs169 fn validate(v: f64) -> Result<f64, ValueErrorKind> { in validate() argument
183 fn validate(v: f64) -> Result<f64, ValueErrorKind> { in validate() argument
187 Err(ValueErrorKind::Value( in validate()
H A Dfont_props.rs120 return Err(parser.new_custom_error(ValueErrorKind::parse_error( in parse()
309 Err(loc.new_custom_error(ValueErrorKind::value_error( in parse()
507 return Err(loc.new_custom_error(ValueErrorKind::value_error( in parse()
H A Dproperty_defs.rs268 …Err(loc.new_custom_error(ValueErrorKind::parse_error("invalid syntax for 'enable-background' prope…
1170 … parser.new_custom_error(ValueErrorKind::parse_error("invalid syntax for 'xml:lang' parameter"))
H A Dtransform.rs182 _ => Err(loc.new_custom_error(ValueErrorKind::parse_error( in parse_transform_prop_function_internal()
215 loc.new_custom_error(ValueErrorKind::parse_error( in only_pixels_error()
592 _ => Err(loc.new_custom_error(ValueErrorKind::parse_error( in parse_transform_function()
H A Dcss.rs118 type Error = ValueErrorKind;
147 type Error = ValueErrorKind;
H A Dfilter_func.rs212 loc.new_custom_error(ValueErrorKind::Value("color already specified".to_string())) in parse_dropshadow()
632 return Err(loc.new_custom_error(ValueErrorKind::parse_error("expected filter function"))); in parse()
H A Dproperties.rs384 Err(loc.new_custom_error(ValueErrorKind::UnknownProperty))
818 kind: ParseErrorKind::Custom(ValueErrorKind::UnknownProperty), in parse_one_presentation_attribute()
H A Dgradient.rs67 _ => Err(loc.new_custom_error(ValueErrorKind::value_error( in parse()
/dports/graphics/librsvg2-rust/librsvg-2.52.8/src/filters/
H A Dconvolve_matrix.rs114 return Err(ValueErrorKind::value_error(&format!( in set_attributes()
131 return Err(ValueErrorKind::value_error("the value must be set")) in set_attributes()