Struct brigadier_rs::Chain
source · pub struct Chain<U1, U2> { /* private fields */ }
Expand description
A chain of two MultipleUsage
iterators.
When iterating over this type, it will return all usages from
both contained MultipleUsage
iterators.
Trait Implementations
sourceimpl<U1, U2> MultipleUsage for Chain<U1, U2>where
U1: MultipleUsage,
U2: MultipleUsage,
impl<U1, U2> MultipleUsage for Chain<U1, U2>where
U1: MultipleUsage,
U2: MultipleUsage,
sourcefn usage_next<W: Write>(&mut self, writer: &mut W) -> Option<Result<(), Error>>
fn usage_next<W: Write>(&mut self, writer: &mut W) -> Option<Result<(), Error>>
Write the next usage to the writer and advance the internal iterator. Read more
sourcefn chain<U2>(self, other: U2) -> Chain<Self, U2>where
Self: Sized,
fn chain<U2>(self, other: U2) -> Chain<Self, U2>where
Self: Sized,
Chains this
MultipleUsage
with another MultipleUsage.sourcefn string_iter(self) -> UsagePrint<Self>ⓘwhere
Self: Sized,
fn string_iter(self) -> UsagePrint<Self>ⓘwhere
Self: Sized,
impl<U1: Copy, U2: Copy> Copy for Chain<U1, U2>
Auto Trait Implementations
impl<U1, U2> RefUnwindSafe for Chain<U1, U2>where
U1: RefUnwindSafe,
U2: RefUnwindSafe,
impl<U1, U2> Send for Chain<U1, U2>where
U1: Send,
U2: Send,
impl<U1, U2> Sync for Chain<U1, U2>where
U1: Sync,
U2: Sync,
impl<U1, U2> Unpin for Chain<U1, U2>where
U1: Unpin,
U2: Unpin,
impl<U1, U2> UnwindSafe for Chain<U1, U2>where
U1: UnwindSafe,
U2: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more