Enum target_lexicon::CustomVendor
source · pub enum CustomVendor {
Owned(Box<String>),
Static(&'static str),
}
Expand description
A string for a Vendor::Custom
that can either be used in const
contexts or hold dynamic strings.
Variants§
Owned(Box<String>)
An owned String
. This supports the general case.
Static(&'static str)
A static str
, so that CustomVendor
can be constructed in const
contexts.
Implementations§
Trait Implementations§
source§impl Clone for CustomVendor
impl Clone for CustomVendor
source§fn clone(&self) -> CustomVendor
fn clone(&self) -> CustomVendor
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 Debug for CustomVendor
impl Debug for CustomVendor
source§impl Hash for CustomVendor
impl Hash for CustomVendor
source§impl PartialEq<CustomVendor> for CustomVendor
impl PartialEq<CustomVendor> for CustomVendor
impl Eq for CustomVendor
impl StructuralEq for CustomVendor
Auto Trait Implementations§
impl RefUnwindSafe for CustomVendor
impl Send for CustomVendor
impl Sync for CustomVendor
impl Unpin for CustomVendor
impl UnwindSafe for CustomVendor
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