pub enum ExtendEntry<'a> {
Comment(Comment<'a>),
Field(Field<'a>),
}Expand description
Entries that can appear inside an extend block.
Variants§
Implementations§
Source§impl ExtendEntry<'_>
impl ExtendEntry<'_>
Sourcepub fn into_owned(self) -> ExtendEntry<'static>
pub fn into_owned(self) -> ExtendEntry<'static>
Copy the structure and clone the original values if it’s not owned.
This is always a deep copy of the structure.
Trait Implementations§
Source§impl<'a> Clone for ExtendEntry<'a>
impl<'a> Clone for ExtendEntry<'a>
Source§fn clone(&self) -> ExtendEntry<'a>
fn clone(&self) -> ExtendEntry<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ExtendEntry<'a>
impl<'a> Debug for ExtendEntry<'a>
Source§impl<'a> From<Comment<'a>> for ExtendEntry<'a>
impl<'a> From<Comment<'a>> for ExtendEntry<'a>
Source§impl<'a> From<Field<'a>> for ExtendEntry<'a>
impl<'a> From<Field<'a>> for ExtendEntry<'a>
Source§impl IntoOwned for ExtendEntry<'_>
impl IntoOwned for ExtendEntry<'_>
Source§type Owned = ExtendEntry<'static>
type Owned = ExtendEntry<'static>
The type after obtaining ownership, should be the same as before but with static lifetime.
Source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Copy the structure and clone the original values if it’s not owned. Read more
Source§impl<'a> PartialEq for ExtendEntry<'a>
impl<'a> PartialEq for ExtendEntry<'a>
impl<'a> StructuralPartialEq for ExtendEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExtendEntry<'a>
impl<'a> RefUnwindSafe for ExtendEntry<'a>
impl<'a> Send for ExtendEntry<'a>
impl<'a> Sync for ExtendEntry<'a>
impl<'a> Unpin for ExtendEntry<'a>
impl<'a> UnwindSafe for ExtendEntry<'a>
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