/dports/graphics/librsvg2-rust/librsvg-2.52.8/src/ |
H A D | error.rs | 27 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 D | cond.rs | 23 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 D | parsers.rs | 37 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 D | style.rs | 23 fn parse(value: &str) -> Result<StyleType, ValueErrorKind> { in parse() argument 33 Err(ValueErrorKind::parse_error( in parse()
|
H A D | color.rs | 22 cssparser::Color::CurrentColor => Err(loc.new_custom_error(ValueErrorKind::Value( in parse()
|
H A D | filter.rs | 11 use crate::error::ValueErrorKind; 194 .map_err(|e| loc.new_custom_error(ValueErrorKind::from(e)))?; in parse()
|
H A D | viewbox.rs | 52 Err(loc.new_custom_error(ValueErrorKind::value_error( in parse()
|
H A D | iri.rs | 42 NodeId::parse(&url).map_err(|e| loc.new_custom_error(ValueErrorKind::from(e)))?; in parse()
|
H A D | lib.rs | 237 pub use crate::error::ValueErrorKind;
|
H A D | paint_server.rs | 9 use crate::error::{AcquireError, NodeIdError, ParseError, ValueErrorKind}; 104 .map_err(|e: NodeIdError| -> ValueErrorKind { e.into() }) in parse()
|
H A D | length.rs | 169 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 D | font_props.rs | 120 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 D | property_defs.rs | 268 …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 D | transform.rs | 182 _ => 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 D | css.rs | 118 type Error = ValueErrorKind; 147 type Error = ValueErrorKind;
|
H A D | filter_func.rs | 212 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 D | properties.rs | 384 Err(loc.new_custom_error(ValueErrorKind::UnknownProperty)) 818 kind: ParseErrorKind::Custom(ValueErrorKind::UnknownProperty), in parse_one_presentation_attribute()
|
H A D | gradient.rs | 67 _ => Err(loc.new_custom_error(ValueErrorKind::value_error( in parse()
|
/dports/graphics/librsvg2-rust/librsvg-2.52.8/src/filters/ |
H A D | convolve_matrix.rs | 114 return Err(ValueErrorKind::value_error(&format!( in set_attributes() 131 return Err(ValueErrorKind::value_error("the value must be set")) in set_attributes()
|