pub enum ContextElement {
Image(Box<Image>),
Text(Box<TextContent>),
}Expand description
Objects that can be an element of the Context’s elements field.
Variants§
Trait Implementations§
Source§impl Clone for ContextElement
impl Clone for ContextElement
Source§fn clone(&self) -> ContextElement
fn clone(&self) -> ContextElement
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextElement
impl Debug for ContextElement
Source§impl From<Image> for ContextElement
impl From<Image> for ContextElement
Source§impl<T> From<T> for ContextElementwhere
TextContent: From<T>,
impl<T> From<T> for ContextElementwhere
TextContent: From<T>,
Source§impl PartialEq for ContextElement
impl PartialEq for ContextElement
Source§impl Serialize for ContextElement
impl Serialize for ContextElement
impl StructuralPartialEq for ContextElement
Auto Trait Implementations§
impl Freeze for ContextElement
impl RefUnwindSafe for ContextElement
impl Send for ContextElement
impl Sync for ContextElement
impl Unpin for ContextElement
impl UnwindSafe for ContextElement
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)