/// Construct a new label from the given string. The string should be
/// specified *without* the leading `'`, so `"foo"` instead of `"'foo"`.
///
/// This constructor does not panic when called outside of a macro context
/// but requires access to a `span` and `storage`.
Construct a new label from the given string.

This constructor does not panic when called outside of a macro context
but requires access to a `span` and `storage`.
Construct a new label from the given string . This constructor does not panic when called outside of a macro context but requires access to a ` span ` and ` storage ` .
pub fn new_with(label: &str, span: Span, storage: &Storage) -> Self {
        let id = storage.insert_str(label);
        let source = ast::StringSource::Synthetic(id);
        ast::Label {
            token: ast::Token {
                span,
                kind: ast::Kind::Label(source),
            },
            source,
        }
    }
pub fn new_with ( label : & str , span : Span , storage : & Storage ) -> Self { let id = storage . insert_str ( label ) ; let source = ast :: StringSource :: Synthetic ( id ) ; ast :: Label { token : ast :: Token { span , kind : ast :: Kind :: Label ( source ) , } , source , } }
Construct a new label from the given string.
Construct a new label from the given string .
label
&str
span
Span
storage
&Storage