/// Embed a static string as a variable
///
/// Currently this uses reference counted object that contains pointer,
/// but we want to figure out better way to reference static strings
Embed a static string as a variable
Currently this uses reference counted object that contains pointer,
but we want to figure out better way to reference static strings
Embed a static string as a variable Currently this uses reference counted object that contains pointer but we want to figure out better way to reference static strings
pub fn str(x: &'static str) -> Var<'a, 'render> {
        // This is a limitation of a rust type system
        Var(Val::Rc(OwningRef::new(Rc::new(x))
                .map(|x| x as &Variable)
                .erase_owner()))
    }
pub fn str ( x : & ' static str ) -> Var < ' a , ' render > { // This is a limitation of a rust type system Var ( Val :: Rc ( OwningRef :: new ( Rc :: new ( x ) ) . map ( | x | x as & Variable ) . erase_owner ( ) ) ) }
Embed a static string as a variable
Currently this uses reference counted object that contains pointer,
but we want to figure out better way to reference static strings
Embed a static string as a variable Currently this uses reference counted object that contains pointer but we want to figure out better way to reference static strings
x
&'static str