Enum target_lexicon::CustomVendor
source · [−]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
sourceimpl CustomVendor
impl CustomVendor
Trait Implementations
sourceimpl Clone for CustomVendor
impl Clone for CustomVendor
sourcefn clone(&self) -> CustomVendor
fn clone(&self) -> CustomVendor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CustomVendor
impl Debug for CustomVendor
sourceimpl Hash for CustomVendor
impl Hash for CustomVendor
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more