rustc_ast::mut_visit

Trait ExpectOne

Source
pub trait ExpectOne<A: Array> {
    // Required method
    fn expect_one(self, err: &'static str) -> A::Item;
}

Required Methods§

Source

fn expect_one(self, err: &'static str) -> A::Item

Implementations on Foreign Types§

Source§

impl<A: Array> ExpectOne<A> for SmallVec<A>

Source§

fn expect_one(self, err: &'static str) -> A::Item

Implementors§