Lines Matching defs:std
26 use std::ops::Range;
43 Io(std::io::Error),
46 impl From<std::io::Error> for Error {
47 fn from(err: std::io::Error) -> Error {
52 impl std::fmt::Display for Error {
53 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
71 impl std::error::Error for Error {
72 fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
90 type Name: 'a + std::fmt::Display;
207 let end_index = std::cmp::min(byte_index, std::cmp::min(line_range.end, source.len()));
252 std::iter::once(0).chain(source.match_indices('\n').map(|(i, _)| i + 1))
275 Name: std::fmt::Display,
300 use std::cmp::Ordering;
319 Name: 'a + std::fmt::Display + Clone,
361 Name: std::fmt::Display,
385 Name: 'a + std::fmt::Display + Clone,