pub struct TypeVariable {
pub name: SharedString,
pub bound: Option<TypeId>,
}Fields§
§name: SharedString§bound: Option<TypeId>Implementations§
Source§impl TypeVariable
impl TypeVariable
pub fn new(name: SharedString) -> Self
pub fn with_bound(self, bound: TypeId) -> Self
Trait Implementations§
Source§impl Clone for TypeVariable
impl Clone for TypeVariable
Source§fn clone(&self) -> TypeVariable
fn clone(&self) -> TypeVariable
Returns a duplicate 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 Debug for TypeVariable
impl Debug for TypeVariable
Source§impl PartialEq for TypeVariable
impl PartialEq for TypeVariable
impl StructuralPartialEq for TypeVariable
Auto Trait Implementations§
impl Freeze for TypeVariable
impl RefUnwindSafe for TypeVariable
impl Send for TypeVariable
impl Sync for TypeVariable
impl Unpin for TypeVariable
impl UnsafeUnpin for TypeVariable
impl UnwindSafe for TypeVariable
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