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 for CustomVendor
impl PartialEq for CustomVendor
impl Eq for CustomVendor
Auto Trait Implementations§
impl Freeze for CustomVendor
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)