Struct proc_macro::ConcatStreamsHelper
source · pub(crate) struct ConcatStreamsHelper {
pub(crate) streams: Vec<TokenStream>,
}
Expand description
Non-generic helper for implementing FromIterator<TokenStream>
and
Extend<TokenStream>
with less monomorphization in calling crates.
Fields§
§streams: Vec<TokenStream>
Implementations§
source§impl ConcatStreamsHelper
impl ConcatStreamsHelper
pub(crate) fn new(capacity: usize) -> Self
pub(crate) fn push(&mut self, stream: TokenStream)
pub(crate) fn build(self) -> TokenStream
pub(crate) fn append_to(self, stream: &mut TokenStream)
Auto Trait Implementations§
impl RefUnwindSafe for ConcatStreamsHelper
impl !Send for ConcatStreamsHelper
impl !Sync for ConcatStreamsHelper
impl Unpin for ConcatStreamsHelper
impl UnwindSafe for ConcatStreamsHelper
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more