Struct ConcatStreamsHelper
pub(crate) struct ConcatStreamsHelper { pub(crate) streams: Vec<TokenStream> }
Non-generic helper for implementing FromIterator<TokenStream> and
Extend<TokenStream> with less monomorphization in calling crates.
Fields
streams: Vec<TokenStream>
Implementations
impl ConcatStreamsHelper
fn new(capacity: usize) -> Selffn push(&mut self, stream: TokenStream)fn build(self) -> TokenStreamfn append_to(self, stream: &mut TokenStream)
Auto Trait Implementations
impl !Send for ConcatStreamsHelper
impl !Sync for ConcatStreamsHelper
impl Freeze for ConcatStreamsHelper
impl RefUnwindSafe for ConcatStreamsHelper
impl Unpin for ConcatStreamsHelper
impl UnsafeUnpin for ConcatStreamsHelper
impl UnwindSafe for ConcatStreamsHelper
Blanket Implementations
impl<T> Any for ConcatStreamsHelper
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ConcatStreamsHelper
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ConcatStreamsHelper
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ConcatStreamsHelper
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for ConcatStreamsHelper
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for ConcatStreamsHelper
impl<T, U> Into<U> for ConcatStreamsHelper
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ConcatStreamsHelper
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ConcatStreamsHelper
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>