• Home
  • Raw
  • Download

Lines Matching defs:Error

31 pub enum Error {  enum
46 impl From<std::io::Error> for Error { implementation
47 fn from(err: std::io::Error) -> Error { in from()
52 impl std::fmt::Display for Error { implementation
71 impl std::error::Error for Error { implementation
95 fn name(&'a self, id: Self::FileId) -> Result<Self::Name, Error>; in name() argument
98 fn source(&'a self, id: Self::FileId) -> Result<Self::Source, Error>; in source() argument
113 fn line_index(&'a self, id: Self::FileId, byte_index: usize) -> Result<usize, Error>; in line_index() argument
127 fn line_number(&'a self, id: Self::FileId, line_index: usize) -> Result<usize, Error> { in line_number() argument
146 ) -> Result<usize, Error> { in column_number() argument
156 fn location(&'a self, id: Self::FileId, byte_index: usize) -> Result<Location, Error> { in location() argument
166 fn line_range(&'a self, id: Self::FileId, line_index: usize) -> Result<Range<usize>, Error>; in line_range() argument
299 fn line_start(&self, line_index: usize) -> Result<usize, Error> { in line_start() argument
326 fn name(&self, (): ()) -> Result<Name, Error> { in name() argument
330 fn source(&self, (): ()) -> Result<&str, Error> { in source() argument
334 fn line_index(&self, (): (), byte_index: usize) -> Result<usize, Error> { in line_index() argument
341 fn line_range(&self, (): (), line_index: usize) -> Result<Range<usize>, Error> { in line_range() argument
378 pub fn get(&self, file_id: usize) -> Result<&SimpleFile<Name, Source>, Error> { in get() argument
392 fn name(&self, file_id: usize) -> Result<Name, Error> { in name() argument
396 fn source(&self, file_id: usize) -> Result<&str, Error> { in source() argument
400 fn line_index(&self, file_id: usize, byte_index: usize) -> Result<usize, Error> { in line_index() argument
404 fn line_range(&self, file_id: usize, line_index: usize) -> Result<Range<usize>, Error> { in line_range() argument