pub struct CssValidator {
pub validator_uri: String,
/* private fields */
}
use std::default::Default;
use w3c_validators::CssValidator;
let nu = CssValidator::new(Default::default());
match nu.validate_text("tbody th{width: /* 25%} */") {
Some(result) => {
if !result.is_valid() {
for msg in result.cssvalidation.errors.unwrap() {
println!("{}: {}", msg._type, msg.message);
}
}
}
None => {},
}
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.