pub struct DefaultAdapter;Expand description
Default adapter that delegates to AttachChild / AttachChildren. Use this
when your builder already implements those extension traits.
Trait Implementations§
Source§impl BxAdapter for DefaultAdapter
impl BxAdapter for DefaultAdapter
Source§fn start<B>(builder: B) -> B
fn start<B>(builder: B) -> B
Build or wrap the initial builder for a tag. Override when the underlying
toolkit requires additional setup on each new element.
Source§fn attach<B, C>(builder: B, child: C) -> Bwhere
Self: CanAttach<B, C>,
fn attach<B, C>(builder: B, child: C) -> Bwhere
Self: CanAttach<B, C>,
Attach a single child to the builder using the adapter-specific glue.
Source§fn attach_many<B, I, C>(builder: B, children: I) -> Bwhere
Self: CanAttachMany<B, I, C>,
fn attach_many<B, I, C>(builder: B, children: I) -> Bwhere
Self: CanAttachMany<B, I, C>,
Attach an iterator of children to the builder using the adapter-specific
glue. Prefer this for spread (
..iter) children to avoid intermediate
allocations where possible.Source§impl<B, C> CanAttach<B, C> for DefaultAdapterwhere
B: AttachChild<C>,
impl<B, C> CanAttach<B, C> for DefaultAdapterwhere
B: AttachChild<C>,
Source§impl<B, I, C> CanAttachMany<B, I, C> for DefaultAdapterwhere
B: AttachChildren<C>,
I: IntoIterator<Item = C>,
impl<B, I, C> CanAttachMany<B, I, C> for DefaultAdapterwhere
B: AttachChildren<C>,
I: IntoIterator<Item = C>,
fn do_attach_many(builder: B, children: I) -> B
Auto Trait Implementations§
impl Freeze for DefaultAdapter
impl RefUnwindSafe for DefaultAdapter
impl Send for DefaultAdapter
impl Sync for DefaultAdapter
impl Unpin for DefaultAdapter
impl UnwindSafe for DefaultAdapter
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