fn class(&self, name: &NameUnion, pos: &Position) -> Result<ClassUnion, Vec<TypeErr>> {
        if name.is_empty() {
            return Err(vec![TypeErr::new(pos, &format!("Unexpected '{}'", name))]);
        }

        let union = name.names().map(|n| self.class(&n, pos)).collect::<Result<_, _>>()?;
        Ok(ClassUnion { union })
    }
/// Look up GenericClass and substitute generics to yield a Class.
///
/// # Error
///
/// If NameUnion is empty.
Look up GenericClass and substitute generics to yield a Class.
Look up GenericClass and substitute generics to yield a Class .
fn class(&self, name: &NameUnion, pos: &Position) -> Result<ClassUnion, Vec<TypeErr>> {
        if name.is_empty() {
            return Err(vec![TypeErr::new(pos, &format!("Unexpected '{}'", name))]);
        }
        let union = name.names().map(|n| self.class(&n, pos)).collect::<Result<_, _>>()?;
        Ok(ClassUnion { union })
    }
fn class ( & self , name : & NameUnion , pos : & Position ) -> Result < ClassUnion , Vec < TypeErr > > { if name . is_empty ( ) { return Err ( vec ! [ TypeErr new ( pos format ( " " name ) ) ] ) ; } let union = name . names ( ) . map ( | n | self . class ( & n , pos ) ) . collect :: < Result < _ , _ > > ( ) ? ; Ok ( ClassUnion { union } ) }
Look up GenericClass and substitute generics to yield a Class.
Look up GenericClass and substitute generics to yield a Class .
&self
name
&NameUnion
pos
&Position
error
If NameUnion is empty.
If NameUnion is empty .