pub struct TypeConstraint {
pub expr_id: ExprId,
pub ty: TypeRepr,
pub context: String,
}Expand description
型制約
簡約せずにそのまま保持し、デバッグ・観察可能にする。 出所情報は TypeRepr 内に含まれる。
Fields§
§expr_id: ExprId対象となる式の ID
ty: TypeRepr構造化された型表現(出所情報を含む)
context: Stringデバッグ用コンテキスト(どこで取得したか)
Implementations§
Trait Implementations§
Source§impl Clone for TypeConstraint
impl Clone for TypeConstraint
Source§fn clone(&self) -> TypeConstraint
fn clone(&self) -> TypeConstraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TypeConstraint
impl RefUnwindSafe for TypeConstraint
impl Send for TypeConstraint
impl Sync for TypeConstraint
impl Unpin for TypeConstraint
impl UnsafeUnpin for TypeConstraint
impl UnwindSafe for TypeConstraint
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