pub fn try_translate(source: String) -> Option<String> {
    match thread::spawn(move || { translate(source) }).join() {
        Ok(s) => Some(s),
        Err(_) => None
    }
}
/// Translate a glassful program to GLSL, or return `None'.
///
/// Because the `libsyntax` parser uses `panic!` internally,
/// this spawns a new thread for the duration of the call.
Translate a glassful program to GLSL, or return `None'.
Because the `libsyntax` parser uses `panic!` internally,
this spawns a new thread for the duration of the call.
Translate a glassful program to GLSL or return ` None ' . Because the ` libsyntax ` parser uses ` panic! ` internally this spawns a new thread for the duration of the call .
pub fn try_translate(source: String) -> Option<String> {
    match thread::spawn(move || { translate(source) }).join() {
        Ok(s) => Some(s),
        Err(_) => None
    }
}
pub fn try_translate ( source : String ) -> Option < String > { match thread :: spawn ( move | | { translate ( source ) } ) . join ( ) { Ok ( s ) => Some ( s ) , Err ( _ ) => None } }
Translate a glassful program to GLSL, or return `None'.
Translate a glassful program to GLSL or return ` None ' .
source
String
source
String