Struct proc_macro_assertions::raw_assert::RawAssert
source · pub struct RawAssert<'a, T>where
T: Generatable<'a>,{
pub template: MaybeBorrowed<'a, T>,
pub generics: Option<MaybeBorrowed<'a, Generics>>,
pub assert: MaybeBorrowed<'a, T::Assert>,
}
Expand description
Some raw assert, consisting of a template, optionally some generics, and the type to assert.
Fields§
§template: MaybeBorrowed<'a, T>
§generics: Option<MaybeBorrowed<'a, Generics>>
§assert: MaybeBorrowed<'a, T::Assert>
Trait Implementations§
source§impl<'a, T> RawAssertable<'a> for RawAssert<'a, T>where
T: Generatable<'a> + Eq + Ord,
T::Assert: Eq + Ord,
impl<'a, T> RawAssertable<'a> for RawAssert<'a, T>where T: Generatable<'a> + Eq + Ord, T::Assert: Eq + Ord,
fn do_raw_assert<I>(self, store: &mut Store<'a, I>)where I: IdentGenerator,
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for RawAssert<'a, T>where T: RefUnwindSafe, <T as Generatable<'a>>::Assert: RefUnwindSafe,
impl<'a, T> !Send for RawAssert<'a, T>
impl<'a, T> !Sync for RawAssert<'a, T>
impl<'a, T> Unpin for RawAssert<'a, T>where T: Unpin, <T as Generatable<'a>>::Assert: Unpin,
impl<'a, T> UnwindSafe for RawAssert<'a, T>where T: UnwindSafe + RefUnwindSafe, <T as Generatable<'a>>::Assert: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
source§impl<T> AnyExt for Twhere
T: Any + ?Sized,
impl<T> AnyExt for Twhere T: Any + ?Sized,
source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where T: Any,
Attempts to downcast this to
T
behind referencesource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where T: Any,
Attempts to downcast this to
T
behind mutable referencesource§fn downcast_rc<T>(
this: Rc<Self, Global>
) -> Result<Rc<T, Global>, Rc<Self, Global>>where
T: Any,
fn downcast_rc<T>( this: Rc<Self, Global> ) -> Result<Rc<T, Global>, Rc<Self, Global>>where T: Any,
Attempts to downcast this to
T
behind Rc
pointersource§fn downcast_arc<T>(
this: Arc<Self, Global>
) -> Result<Arc<T, Global>, Arc<Self, Global>>where
T: Any,
fn downcast_arc<T>( this: Arc<Self, Global> ) -> Result<Arc<T, Global>, Arc<Self, Global>>where T: Any,
Attempts to downcast this to
T
behind Arc
pointersource§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