[−][src]Enum moore_vhdl::hir::Range2
A range.
See IEEE 1076-2008 section 5.2.1.
range := range.attribute_name | simple_expression direction simple_expression
Variants
An range given by two immediate values.
Methods
impl<'t> Range2<'t>
[src]
pub fn bound_type<C>(&self, ctx: C) -> Result<&'t dyn Type> where
C: ExprContext<'t> + Copy,
[src]
C: ExprContext<'t> + Copy,
Determine the type of the range.
This determines the type of the range's bounds and applies any necessary implicit casts to make them be of the same type.
pub fn constant_value<C>(
&self,
ctx: C
) -> Result<(Dir, &'t dyn Const2<'t>, &'t dyn Const2<'t>)> where
C: ExprContext<'t> + Copy,
[src]
&self,
ctx: C
) -> Result<(Dir, &'t dyn Const2<'t>, &'t dyn Const2<'t>)> where
C: ExprContext<'t> + Copy,
Determine the constant value of the range.
Trait Implementations
Auto Trait Implementations
impl<'t> !Send for Range2<'t>
impl<'t> !Sync for Range2<'t>
impl<'t> Unpin for Range2<'t>
impl<'t> !UnwindSafe for Range2<'t>
impl<'t> !RefUnwindSafe for Range2<'t>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,