Lines Matching refs:Utf8Error
410 pub struct Utf8Error { struct
415 impl Utf8Error { implementation
455 impl error::Error for Utf8Error { implementation
461 impl fmt::Display for Utf8Error { implementation
471 pub fn validate(slice: &[u8]) -> Result<(), Utf8Error> { in validate() argument
476 fn fast(slice: &[u8]) -> Result<(), Utf8Error> { in validate() argument
510 fn find_valid_up_to(slice: &[u8], rejected_at: usize) -> Utf8Error { in validate() argument
531 fn slow(slice: &[u8]) -> Result<(), Utf8Error> { in validate() argument
541 return Err(Utf8Error { valid_up_to, error_len }); in validate()
545 Err(Utf8Error { valid_up_to, error_len: None }) in validate()
863 use utf8::{self, Utf8Error};
865 fn utf8e(valid_up_to: usize) -> Utf8Error { in utf8e() argument
866 Utf8Error { valid_up_to, error_len: None } in utf8e()
869 fn utf8e2(valid_up_to: usize, error_len: usize) -> Utf8Error { in utf8e2() argument
870 Utf8Error { valid_up_to, error_len: Some(error_len) } in utf8e2()