[][src]Function translate_core::detect

pub fn detect<T, Q>(tr: T, text: String, end: Q) where
    T: Send + 'static + EDetect,
    Q: Send + 'static + FnOnce(Option<Langage>), 

This function detect the langage of a text. Actually only Yandex as the EDetect trait implemented You need to pass arguments: (,<text: String>,<The callback function which take an Option parameter)