Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
type Foo<'a> = &'a dyn Send + Sync;
type Foo = *const dyn Send + Sync;
type Foo = fn() -> dyn Send + 'static;
fn main() {
    let b = (&a) as &dyn Add<Other, Output = Addable> + Other;
}
(text: RopeSlice, ch: char, mut pos: usize, n: usize) -> Option<usize> { if pos == 0 || n == 0 { return None; } let mut chars = text.chars_at(pos); for _ in 0..n { loop { let c = chars.prev()?; pos -= 1; if c == ch { break; } } } Some(pos) }