pub fn new_with<T>(lit: T, span: Span, storage: &Storage) -> Self
    where
        T: crate::macros::IntoLit,
    {
        T::into_lit(lit, span, storage)
    }
/// Construct a new literal with the specified span and storage.
///
/// This does not panic outside of a macro context, but requires access to
/// the specified arguments.
///
/// # Examples
///
/// ```rust
/// use rune::{ast, Storage};
/// use runestick::Span;
///
/// let storage = Storage::default();
/// let string = ast::Lit::new_with("hello world", Span::empty(), &storage);
/// ```
Construct a new literal with the specified span and storage.
This does not panic outside of a macro context, but requires access to
the specified arguments.
Construct a new literal with the specified span and storage . This does not panic outside of a macro context but requires access to the specified arguments .
pub fn new_with<T>(lit: T, span: Span, storage: &Storage) -> Self
    where
        T: crate::macros::IntoLit,
    {
        T::into_lit(lit, span, storage)
    }
pub fn new_with < T > ( lit : T , span : Span , storage : & Storage ) -> Self where T : crate :: macros :: IntoLit , { T :: into_lit ( lit , span , storage ) }
Construct a new literal with the specified span and storage.
Construct a new literal with the specified span and storage .
lit
T
span
Span
storage
&Storage
lit
T
span
Span
storage
&Storage
examples
```rust
use rune::{ast, Storage};
use runestick::Span.

let storage = Storage::default();
let string = ast::Lit::new_with("hello world", Span::empty(), &storage);
```
` ` ` rust use rune :: { ast Storage } ; use runestick :: Span . let storage = Storage :: default () ; let string = ast :: Lit :: new_with ( " hello world " Span :: empty () &storage ) ; ` ` `