Trait domain::bits::compose::Composable
[−]
[src]
pub trait Composable { fn compose<C: AsMut<Composer>>(&self, target: C) -> ComposeResult<()>; }
A trait allowing types to compose themselves.
Required Methods
fn compose<C: AsMut<Composer>>(&self, target: C) -> ComposeResult<()>
Append the wire-format representation of self
to a composer.
The method is generic over AsMut<Composer>
because it may either
receive a [Composer
] or [ComposeSnapshot
]. This means that when
using target
, you’ll have to call target.as_mut()
.