Struct moore_vhdl::ty2::AccessType
source · [−]pub struct AccessType<'t> { /* private fields */ }
Expand description
An access type.
Implementations
sourceimpl<'t> AccessType<'t>
impl<'t> AccessType<'t>
sourcepub fn new(inner: &'t dyn Type) -> AccessType<'t>
pub fn new(inner: &'t dyn Type) -> AccessType<'t>
Create a new access type.
Example
use moore_vhdl::ty2::{Type, AccessType, IntegerBasetype, Range};
let a = IntegerBasetype::new(Range::ascending(0, 42));
let ty = AccessType::new(&a);
assert_eq!(format!("{}", ty), "access 0 to 42");
Trait Implementations
sourceimpl<'a, 't> Alloc<'a, 'a, AccessType<'t>> for TypeArena<'t> where
't: 'a,
impl<'a, 't> Alloc<'a, 'a, AccessType<'t>> for TypeArena<'t> where
't: 'a,
sourcefn alloc(&'a self, value: AccessType<'t>) -> &'a mut AccessType<'t>
fn alloc(&'a self, value: AccessType<'t>) -> &'a mut AccessType<'t>
Allocate a value of type T
.
sourceimpl<'t> Clone for AccessType<'t>
impl<'t> Clone for AccessType<'t>
sourcefn clone(&self) -> AccessType<'t>
fn clone(&self) -> AccessType<'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 AccessType<'t>
impl<'t> Debug for AccessType<'t>
sourceimpl<'t> Display for AccessType<'t>
impl<'t> Display for AccessType<'t>
sourceimpl<'t> PartialEq<AccessType<'t>> for AccessType<'t>
impl<'t> PartialEq<AccessType<'t>> for AccessType<'t>
sourcefn eq(&self, other: &AccessType<'t>) -> bool
fn eq(&self, other: &AccessType<'t>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AccessType<'t>) -> bool
fn ne(&self, other: &AccessType<'t>) -> bool
This method tests for !=
.
sourceimpl<'t> Type for AccessType<'t>
impl<'t> Type for AccessType<'t>
sourcefn is_discrete(&self) -> bool
fn is_discrete(&self) -> bool
Check if this is a discrete type. Read more
sourcefn is_numeric(&self) -> bool
fn is_numeric(&self) -> bool
Check if this is a numeric type. Read more
sourcefn is_composite(&self) -> bool
fn is_composite(&self) -> bool
Check if this is a composite type. Read more
sourcefn into_owned<'a>(self) -> OwnedType<'a> where
Self: 'a,
fn into_owned<'a>(self) -> OwnedType<'a> where
Self: 'a,
Convert into an owned type.
sourcefn is_implicitly_castable(&self, _into: &dyn Type) -> bool
fn is_implicitly_castable(&self, _into: &dyn Type) -> bool
Check if the type can be implicitly cast to another.
impl<'t> Eq for AccessType<'t>
impl<'t> StructuralEq for AccessType<'t>
impl<'t> StructuralPartialEq for AccessType<'t>
Auto Trait Implementations
impl<'t> !RefUnwindSafe for AccessType<'t>
impl<'t> !Send for AccessType<'t>
impl<'t> !Sync for AccessType<'t>
impl<'t> Unpin for AccessType<'t>
impl<'t> !UnwindSafe for AccessType<'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