pub trait Append {
fn append_by_ref(&self, _: &mut IterAppend<'_>);
fn append(self, ia: &mut IterAppend<'_>)
where
Self: Sized,
{ ... }
}
Expand description
Types that can be appended to a message as arguments implement this trait.
Required Methods
sourcefn append_by_ref(&self, _: &mut IterAppend<'_>)
fn append_by_ref(&self, _: &mut IterAppend<'_>)
Performs the append operation by borrowing self.
Provided Methods
sourcefn append(self, ia: &mut IterAppend<'_>)where
Self: Sized,
fn append(self, ia: &mut IterAppend<'_>)where
Self: Sized,
Performs the append operation by consuming self.
Implementations on Foreign Types
sourceimpl<'a, T: Append> Append for &'a T
impl<'a, T: Append> Append for &'a T
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<T: Append> Append for Box<T>
impl<T: Append> Append for Box<T>
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl Append for u8
impl Append for u8
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl Append for i16
impl Append for i16
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl Append for u16
impl Append for u16
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl Append for i32
impl Append for i32
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl Append for u32
impl Append for u32
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl Append for i64
impl Append for i64
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl Append for u64
impl Append for u64
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl Append for bool
impl Append for bool
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl Append for f64
impl Append for f64
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<'a> Append for &'a str
impl<'a> Append for &'a str
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<'a> Append for String
impl<'a> Append for String
fn append(self, i: &mut IterAppend<'_>)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl Append for File
impl Append for File
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<A: Append> Append for (A,)
impl<A: Append> Append for (A,)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<A: Append, B: Append> Append for (A, B)
impl<A: Append, B: Append> Append for (A, B)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<A: Append, B: Append, C: Append> Append for (A, B, C)
impl<A: Append, B: Append, C: Append> Append for (A, B, C)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<A: Append, B: Append, C: Append, D: Append> Append for (A, B, C, D)
impl<A: Append, B: Append, C: Append, D: Append> Append for (A, B, C, D)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<A: Append, B: Append, C: Append, D: Append, E: Append> Append for (A, B, C, D, E)
impl<A: Append, B: Append, C: Append, D: Append, E: Append> Append for (A, B, C, D, E)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<A: Append, B: Append, C: Append, D: Append, E: Append, F: Append> Append for (A, B, C, D, E, F)
impl<A: Append, B: Append, C: Append, D: Append, E: Append, F: Append> Append for (A, B, C, D, E, F)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<A: Append, B: Append, C: Append, D: Append, E: Append, F: Append, G: Append> Append for (A, B, C, D, E, F, G)
impl<A: Append, B: Append, C: Append, D: Append, E: Append, F: Append, G: Append> Append for (A, B, C, D, E, F, G)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<A: Append, B: Append, C: Append, D: Append, E: Append, F: Append, G: Append, H: Append> Append for (A, B, C, D, E, F, G, H)
impl<A: Append, B: Append, C: Append, D: Append, E: Append, F: Append, G: Append, H: Append> Append for (A, B, C, D, E, F, G, H)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<A: Append, B: Append, C: Append, D: Append, E: Append, F: Append, G: Append, H: Append, I: Append> Append for (A, B, C, D, E, F, G, H, I)
impl<A: Append, B: Append, C: Append, D: Append, E: Append, F: Append, G: Append, H: Append, I: Append> Append for (A, B, C, D, E, F, G, H, I)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<A: Append, B: Append, C: Append, D: Append, E: Append, F: Append, G: Append, H: Append, I: Append, J: Append> Append for (A, B, C, D, E, F, G, H, I, J)
impl<A: Append, B: Append, C: Append, D: Append, E: Append, F: Append, G: Append, H: Append, I: Append, J: Append> Append for (A, B, C, D, E, F, G, H, I, J)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<A: Append, B: Append, C: Append, D: Append, E: Append, F: Append, G: Append, H: Append, I: Append, J: Append, K: Append> Append for (A, B, C, D, E, F, G, H, I, J, K)
impl<A: Append, B: Append, C: Append, D: Append, E: Append, F: Append, G: Append, H: Append, I: Append, J: Append, K: Append> Append for (A, B, C, D, E, F, G, H, I, J, K)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<A: Append, B: Append, C: Append, D: Append, E: Append, F: Append, G: Append, H: Append, I: Append, J: Append, K: Append, L: Append> Append for (A, B, C, D, E, F, G, H, I, J, K, L)
impl<A: Append, B: Append, C: Append, D: Append, E: Append, F: Append, G: Append, H: Append, I: Append, J: Append, K: Append, L: Append> Append for (A, B, C, D, E, F, G, H, I, J, K, L)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
sourceimpl<'a, T: Arg + Append + Clone> Append for &'a [T]
impl<'a, T: Arg + Append + Clone> Append for &'a [T]
Appends a D-Bus array. Note: In case you have a large array of a type that implements FixedArray, using this method will be more efficient than using an Array.