pub enum Origin {
Own,
Mixin {
name: String,
def_span: Span,
},
Blueprint {
name: String,
def_span: Span,
apply_span: Span,
},
Generated {
by: String,
},
}Expand description
定義がどこから来たか。診断で定義元を指すのに使う。
直列化では種別と名前だけを出す。span はソースが無いと意味を持たない。
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Origin
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