Lines Matching defs:Error
34 pub enum Error { enum
73 impl std::convert::From<std::str::Utf8Error> for Error { implementation
78 impl fmt::Display for Error { implementation
95 impl std::error::Error for Error { implementation
196 fn safe_sub(a: usize, b: usize) -> Result<usize, Error> { in safe_sub() argument
200 fn deref_offset(buffer: &[u8], address: usize, width: BitWidth) -> Result<usize, Error> { in deref_offset() argument
212 ) -> Result<Self, Error> { in new() argument
230 pub fn get_root(buffer: B) -> Result<Self, Error> { in get_root() argument
286 fn expect_type(&self, ty: FlexBufferType) -> Result<(), Error> { in expect_type() argument
296 fn expect_bw(&self, bw: BitWidth) -> Result<(), Error> { in expect_bw() argument
315 pub fn get_slice<T: ReadLE>(&self) -> Result<&[T], Error> { in get_slice() argument
341 pub fn get_bool(&self) -> Result<bool, Error> { in get_bool() argument
354 fn get_key_len(&self) -> Result<usize, Error> { in get_key_len() argument
365 pub fn get_key(&self) -> Result<B::BufferString, Error> { in get_key() argument
373 pub fn get_blob(&self) -> Result<Blob<B>, Error> { in get_blob() argument
388 pub fn get_str(&self) -> Result<B::BufferString, Error> { in get_str() argument
396 fn get_map_info(&self) -> Result<(usize, BitWidth), Error> { in get_map_info() argument
410 pub fn get_map(&self) -> Result<MapReader<B>, Error> { in get_map() argument
426 pub fn get_u64(&self) -> Result<u64, Error> { in get_u64() argument
449 pub fn get_i64(&self) -> Result<i64, Error> { in get_i64() argument
472 pub fn get_f64(&self) -> Result<f64, Error> { in get_f64() argument
589 pub fn get_vector(&self) -> Result<VectorReader<B>, Error> { in get_vector() argument
672 fn unpack_type(ty: u8) -> Result<(FlexBufferType, BitWidth), Error> { in unpack_type() argument