Lines Matching defs:new

212     pub fn new() -> Self {
213 TokenStream::_new(imp::TokenStream::new())
223 /// i.e. this is equivalent with `TokenStream::new()`.
226 TokenStream::new()
432 /// Creates a new span with the same line/column information as `self` but
438 /// Creates a new span with the same name resolution behavior as `self` but
505 /// Create a new span encompassing `self` and `other`.
683 /// Creates a new `Group` with the given delimiter and token stream.
688 pub fn new(delimiter: Delimiter, stream: TokenStream) -> Self {
690 inner: imp::Group::new(delimiter, stream.inner),
743 DelimSpan::new(&self.inner)
797 /// Creates a new `Punct` from the given character and spacing.
804 pub fn new(ch: char, spacing: Spacing) -> Self {
864 /// An identifier constructed with `Ident::new` is permitted to be a Rust
867 /// behaviour of `Ident::new`.
873 /// A new ident can be created from a string using the `Ident::new` function.
881 /// let call_ident = Ident::new("calligraphy", Span::call_site());
894 /// let ident = Ident::new("demo", Span::call_site());
900 /// let temp_ident = Ident::new(&format!("new_{}", ident), Span::call_site());
911 /// # let ident = Ident::new("another_identifier", Span::call_site());
933 /// Creates a new `Ident` with the given `string` as well as the specified
963 /// rather than `Ident::new`.
965 pub fn new(string: &str, span: Span) -> Self {
969 /// Same as `Ident::new`, but creates a raw identifier (`r#ident`). The
1054 /// Creates a new suffixed integer literal with the specified value.
1073 /// Creates a new unsuffixed integer literal with the specified value.
1137 /// Creates a new unsuffixed floating-point literal.
1155 /// Creates a new suffixed floating-point literal.
1173 /// Creates a new unsuffixed floating-point literal.
1191 /// Creates a new suffixed floating-point literal.