struct Reinterpreted<'a> {
target_type: &'a str,
orig: Handle<Expression>,
}
Expand description
Wrapper for reinterpreted variables using as_type<target_type>(orig)
.
Implements core::fmt::Display
, formatting as a name derived from
target_type
and the variable name of orig
.
Fields§
§target_type: &'a str
§orig: Handle<Expression>
Implementations§
Source§impl<'a> Reinterpreted<'a>
impl<'a> Reinterpreted<'a>
const fn new(target_type: &'a str, orig: Handle<Expression>) -> Self
Trait Implementations§
Source§impl<'a> Clone for Reinterpreted<'a>
impl<'a> Clone for Reinterpreted<'a>
Source§fn clone(&self) -> Reinterpreted<'a>
fn clone(&self) -> Reinterpreted<'a>
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 Display for Reinterpreted<'_>
impl Display for Reinterpreted<'_>
impl<'a> Copy for Reinterpreted<'a>
Auto Trait Implementations§
impl<'a> Freeze for Reinterpreted<'a>
impl<'a> RefUnwindSafe for Reinterpreted<'a>
impl<'a> Send for Reinterpreted<'a>
impl<'a> Sync for Reinterpreted<'a>
impl<'a> Unpin for Reinterpreted<'a>
impl<'a> UnwindSafe for Reinterpreted<'a>
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