pub struct ConstrainsData<'types> {
pub meta: &'types Constrains,
pub range: Range<Bound<TokenStream>>,
}Expand description
Code generator data for the constrains of a specific type.
Fields§
§meta: &'types ConstrainsReference to the original constrains information.
range: Range<Bound<TokenStream>>The the value should ne in as token stream literals.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for ConstrainsData<'types>
impl<'types> RefUnwindSafe for ConstrainsData<'types>
impl<'types> !Send for ConstrainsData<'types>
impl<'types> !Sync for ConstrainsData<'types>
impl<'types> Unpin for ConstrainsData<'types>
impl<'types> UnwindSafe for ConstrainsData<'types>
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