Enum biblatex::PermissiveType
source · pub enum PermissiveType<T: Type> {
Typed(T),
Chunks(Chunks),
}
Expand description
A value that could be either a typed value or a literal string.
Variants§
Typed(T)
A typed version of the value.
Chunks(Chunks)
A literal string, for example "Reprinted, and revised edition"
.
Trait Implementations§
source§impl<T: Clone + Type> Clone for PermissiveType<T>
impl<T: Clone + Type> Clone for PermissiveType<T>
source§fn clone(&self) -> PermissiveType<T>
fn clone(&self) -> PermissiveType<T>
Returns a copy 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<T: PartialEq + Type> PartialEq for PermissiveType<T>
impl<T: PartialEq + Type> PartialEq for PermissiveType<T>
source§fn eq(&self, other: &PermissiveType<T>) -> bool
fn eq(&self, other: &PermissiveType<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Type for PermissiveType<T>where
T: Type,
impl<T> Type for PermissiveType<T>where T: Type,
impl<T: Eq + Type> Eq for PermissiveType<T>
impl<T: Type> StructuralEq for PermissiveType<T>
impl<T: Type> StructuralPartialEq for PermissiveType<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for PermissiveType<T>where T: RefUnwindSafe,
impl<T> Send for PermissiveType<T>where T: Send,
impl<T> Sync for PermissiveType<T>where T: Sync,
impl<T> Unpin for PermissiveType<T>where T: Unpin,
impl<T> UnwindSafe for PermissiveType<T>where T: UnwindSafe,
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