Struct cl_typeck::definition::Def
source · pub struct Def<'a> {
pub node: Node<'a>,
pub kind: DefKind,
pub module: Module,
}
Fields§
§node: Node<'a>
§kind: DefKind
§module: Module
Implementations§
source§impl<'a> Def<'a>
impl<'a> Def<'a>
pub fn set_vis(&mut self, vis: Visibility) -> &mut Self
pub fn set_meta(&mut self, meta: &'a [Meta]) -> &mut Self
pub fn set_kind(&mut self, kind: DefKind) -> &mut Self
pub fn set_source(&mut self, source: NodeSource<'a>) -> &mut Self
pub fn set_module(&mut self, module: Module) -> &mut Self
Trait Implementations§
source§impl<'a> PartialEq for Def<'a>
impl<'a> PartialEq for Def<'a>
impl<'a> Eq for Def<'a>
impl<'a> StructuralPartialEq for Def<'a>
Auto Trait Implementations§
impl<'a> Freeze for Def<'a>
impl<'a> RefUnwindSafe for Def<'a>
impl<'a> Send for Def<'a>
impl<'a> Sync for Def<'a>
impl<'a> Unpin for Def<'a>
impl<'a> UnwindSafe for Def<'a>
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