Enum moore_vhdl::konst2::OwnedConst
source · [−]pub enum OwnedConst<'t> {
Integer(IntegerConst<'t>),
Floating(FloatingConst<'t>),
}
Expand description
An owned constant.
Variants
Integer(IntegerConst<'t>)
Floating(FloatingConst<'t>)
Trait Implementations
sourceimpl<'t> Borrow<dyn Const2<'t> + 't> for OwnedConst<'t>
impl<'t> Borrow<dyn Const2<'t> + 't> for OwnedConst<'t>
sourceimpl<'t> Clone for OwnedConst<'t>
impl<'t> Clone for OwnedConst<'t>
sourcefn clone(&self) -> OwnedConst<'t>
fn clone(&self) -> OwnedConst<'t>
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<'t> Debug for OwnedConst<'t>
impl<'t> Debug for OwnedConst<'t>
sourceimpl<'t> Display for OwnedConst<'t>
impl<'t> Display for OwnedConst<'t>
sourceimpl<'t, T: Const2<'t>> From<T> for OwnedConst<'t>
impl<'t, T: Const2<'t>> From<T> for OwnedConst<'t>
sourcefn from(konst: T) -> OwnedConst<'t>
fn from(konst: T) -> OwnedConst<'t>
Performs the conversion.
sourceimpl<'t> PartialEq<OwnedConst<'t>> for OwnedConst<'t>
impl<'t> PartialEq<OwnedConst<'t>> for OwnedConst<'t>
sourcefn eq(&self, other: &OwnedConst<'t>) -> bool
fn eq(&self, other: &OwnedConst<'t>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OwnedConst<'t>) -> bool
fn ne(&self, other: &OwnedConst<'t>) -> bool
This method tests for !=
.
impl<'t> Eq for OwnedConst<'t>
impl<'t> StructuralEq for OwnedConst<'t>
impl<'t> StructuralPartialEq for OwnedConst<'t>
Auto Trait Implementations
impl<'t> !RefUnwindSafe for OwnedConst<'t>
impl<'t> !Send for OwnedConst<'t>
impl<'t> !Sync for OwnedConst<'t>
impl<'t> Unpin for OwnedConst<'t>
impl<'t> !UnwindSafe for OwnedConst<'t>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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