[−][src]Struct moore_svlog::GlobalContext
The central data structure of the compiler. It stores references to various arenas and tables that store the results of the various computations that have been performed.
Fields
sess: &'gcx Session
The global compiler session.
arena: &'gcx GlobalArenas<'gcx>
The arena that owns all references.
Implementations
impl<'gcx> GlobalContext<'gcx>
[src]
pub fn new(sess: &'gcx Session, arena: &'gcx GlobalArenas<'gcx>) -> Self
[src]
Create a new global context.
pub fn add_root(&self, root: &'gcx Root<'gcx>)
[src]
Add an AST root to the context for processing.
Use the find_global_item
function afterwards to look up the id of
modules that were added.
pub fn add_files(&self, files: impl Iterator<Item = &'gcx SourceFile<'gcx>>)
[src]
Add an AST root with a series of source files to the context for processing.
pub fn find_module(&self, name: Name) -> Option<NodeId>
[src]
Find a module in the AST.
pub fn modules(&self) -> impl Iterator<Item = (Name, NodeId)>
[src]
Get an iterator over all modules in the AST.
pub fn find_package(&self, name: Name) -> Option<NodeId>
[src]
Find a package in the AST.
pub fn imports(&self) -> impl Iterator<Item = NodeId>
[src]
Get an iterator over all root imports in the AST.
Trait Implementations
impl<'gcx> Context<'gcx> for GlobalContext<'gcx>
[src]
pub fn gcx(&self) -> &GlobalContext<'gcx>
[src]
pub fn sess(&self) -> &'gcx Session
[src]
pub fn arena(&self) -> &'gcx GlobalArenas<'gcx>
[src]
pub fn tables(&self) -> &GlobalTables<'gcx>
[src]
pub fn unimp<T: HasSpan + HasDesc, R>(&self, node: &T) -> Result<R>
[src]
pub fn unimp_msg<T: HasSpan + HasDesc, R>(
&self,
msg: impl Into<String>,
node: &T
) -> Result<R>
[src]
&self,
msg: impl Into<String>,
node: &T
) -> Result<R>
pub fn alloc_id(&self, span: Span) -> NodeId
[src]
pub fn span(&self, node_id: NodeId) -> Span
[src]
pub fn set_span(&self, node_id: NodeId, span: Span)
[src]
pub fn set_ast(&self, node_id: NodeId, ast: AstNode<'gcx>)
[src]
pub fn map_ast(&self, ast: AstNode<'gcx>) -> NodeId
[src]
pub fn map_ast_with_parent(&self, ast: AstNode<'gcx>, parent: NodeId) -> NodeId
[src]
pub fn ast_of(&self, node_id: NodeId) -> Result<AstNode<'gcx>>
[src]
pub fn register_ast(&self, node: &'gcx dyn AnyNode<'gcx>)
[src]
pub fn ast_for_id(&self, node_id: NodeId) -> &'gcx dyn AnyNode<'gcx>
[src]
pub fn intern_hir(&self, id: NodeId, hir: HirNode<'gcx>)
[src]
pub fn intern_hir_with_parent(
&self,
id: NodeId,
hir: HirNode<'gcx>,
parent: NodeId
)
[src]
&self,
id: NodeId,
hir: HirNode<'gcx>,
parent: NodeId
)
pub fn interned_hir(&self, id: NodeId) -> HirNode<'gcx>
[src]
pub fn get_interned_hir(&self, id: NodeId) -> Option<HirNode<'gcx>>
[src]
pub fn intern_value(&self, value: ValueData<'gcx>) -> Value<'gcx>
[src]
pub fn intern_param_env(&self, env: ParamEnvData<'gcx>) -> ParamEnv
[src]
pub fn param_env_data(&self, env: ParamEnv) -> &'gcx ParamEnvData<'gcx>
[src]
pub fn default_param_env(&self) -> ParamEnv
[src]
pub fn add_param_env_context(&self, env: ParamEnv, context: NodeId)
[src]
pub fn param_env_contexts(&self, env: ParamEnv) -> Vec<NodeId>
[src]
pub fn set_parent(&self, node_id: NodeId, parent_id: NodeId)
[src]
pub fn parent_node_id(&self, node_id: NodeId) -> Option<NodeId>
[src]
pub fn is_parent_of(&self, parent_id: NodeId, child_id: NodeId) -> bool
[src]
pub fn resolve_upwards_or_error(
&self,
name: Spanned<Name>,
start_at: NodeId
) -> Result<NodeId>
[src]
&self,
name: Spanned<Name>,
start_at: NodeId
) -> Result<NodeId>
pub fn resolve_downwards_or_error(
&self,
name: Spanned<Name>,
start_at: NodeId
) -> Result<NodeId>
[src]
&self,
name: Spanned<Name>,
start_at: NodeId
) -> Result<NodeId>
pub fn set_lowering_hint(&self, node_id: NodeId, hint: Hint)
[src]
pub fn lowering_hint(&self, node_id: NodeId) -> Option<Hint>
[src]
pub fn constant_int_value_of(
&self,
node_id: NodeId,
env: ParamEnv
) -> Result<&'gcx BigInt>
[src]
&self,
node_id: NodeId,
env: ParamEnv
) -> Result<&'gcx BigInt>
impl DiagEmitter for GlobalContext<'_>
[src]
pub fn emit(&self, mut diag: DiagBuilder2)
[src]
impl<'gcx> HasTypeStorage<'gcx> for GlobalContext<'gcx>
[src]
pub fn type_storage(&self) -> &'gcx TypeStorage<'gcx>
[src]
impl<'gcx> QueryDatabase<'gcx> for GlobalContext<'gcx>
[src]
type Context = Self
The type passed as first argument to compiler query implementations. Read more
pub fn context(&self) -> &SelfⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
pub fn storage(&self) -> &QueryStorage<'gcx>
[src]
pub fn handle_cycle(&self) -> !
[src]
pub fn before_query(&self, tag: &QueryTag<'a>)
[src]
pub fn after_query(&self, tag: &QueryTag<'a>)
[src]
pub fn hir_of(&self, node_id: NodeId) -> Result<HirNode<'a>>
[src]
pub fn hir_of_module(&self, ast: &'a Module<'a>) -> Result<&'a Module<'a>>
[src]
pub fn hir_of_interface(
&self,
ast: &'a Interface<'a>
) -> Result<&'a Interface<'a>>
[src]
&self,
ast: &'a Interface<'a>
) -> Result<&'a Interface<'a>>
pub fn hir_of_expr(&self, arg0: Ref<'a, Expr<'a>>) -> Result<&'a Expr<'a>>
[src]
pub fn accessed_nodes(
&self,
node_id: NodeId,
env: ParamEnv
) -> Result<Arc<AccessTable>>
[src]
&self,
node_id: NodeId,
env: ParamEnv
) -> Result<Arc<AccessTable>>
pub fn inst_details(
&self,
arg0: Ref<'a, Inst<'a>>,
env: ParamEnv
) -> Result<Arc<InstDetails<'a>>>
[src]
&self,
arg0: Ref<'a, Inst<'a>>,
env: ParamEnv
) -> Result<Arc<InstDetails<'a>>>
pub fn inst_target_details(
&self,
arg0: Ref<'a, InstTarget<'a>>,
env: ParamEnv
) -> Result<Arc<InstTargetDetails<'a>>>
[src]
&self,
arg0: Ref<'a, InstTarget<'a>>,
env: ParamEnv
) -> Result<Arc<InstTargetDetails<'a>>>
pub fn mir_assignment_from_procedural(
&self,
origin: NodeId,
lhs: NodeId,
rhs: NodeId,
env: ParamEnv,
span: Span,
kind: AssignKind
) -> &'a Assignment<'a>
[src]
&self,
origin: NodeId,
lhs: NodeId,
rhs: NodeId,
env: ParamEnv,
span: Span,
kind: AssignKind
) -> &'a Assignment<'a>
pub fn mir_assignment_from_concurrent(
&self,
arg0: Ref<'a, Assign>,
env: ParamEnv
) -> &'a Assignment<'a>
[src]
&self,
arg0: Ref<'a, Assign>,
env: ParamEnv
) -> &'a Assignment<'a>
pub fn mir_simplify_assignment(
&self,
arg0: Ref<'a, Assignment<'a>>
) -> Vec<&'a Assignment<'a>>
[src]
&self,
arg0: Ref<'a, Assignment<'a>>
) -> Vec<&'a Assignment<'a>>
pub fn mir_lvalue(&self, expr_id: NodeId, env: ParamEnv) -> &'a Lvalue<'a>
[src]
pub fn mir_rvalue(&self, expr_id: NodeId, env: ParamEnv) -> &'a Rvalue<'a>
[src]
pub fn param_env(&self, src: ParamEnvSource<'a>) -> Result<ParamEnv>
[src]
pub fn map_pattern(
&self,
arg0: Ref<'a, Expr<'a>>,
env: ParamEnv
) -> Result<Arc<PatternMapping<'a>>>
[src]
&self,
arg0: Ref<'a, Expr<'a>>,
env: ParamEnv
) -> Result<Arc<PatternMapping<'a>>>
pub fn canonicalize_ports(
&self,
node: &'a dyn PortedNode<'a>
) -> &'a PortList<'a>
[src]
&self,
node: &'a dyn PortedNode<'a>
) -> &'a PortList<'a>
pub fn port_mapping(
&self,
node: &'a dyn PortedNode<'a>,
outer_env: ParamEnv,
inner_env: ParamEnv,
arg3: Ref<'a, InstName<'a>>,
pos: &'a [PosParam],
named: &'a [NamedParam],
has_wildcard_port: bool
) -> Result<Arc<PortMapping<'a>>>
[src]
&self,
node: &'a dyn PortedNode<'a>,
outer_env: ParamEnv,
inner_env: ParamEnv,
arg3: Ref<'a, InstName<'a>>,
pos: &'a [PosParam],
named: &'a [NamedParam],
has_wildcard_port: bool
) -> Result<Arc<PortMapping<'a>>>
pub fn local_rib(&self, node_id: NodeId) -> Result<&'a Rib>
[src]
pub fn hierarchical_rib(&self, node_id: NodeId) -> Result<&'a Rib>
[src]
pub fn resolve_upwards(
&self,
name: Name,
start_at: NodeId
) -> Result<Option<NodeId>>
[src]
&self,
name: Name,
start_at: NodeId
) -> Result<Option<NodeId>>
pub fn resolve_downwards(
&self,
name: Name,
start_at: NodeId
) -> Result<Option<NodeId>>
[src]
&self,
name: Name,
start_at: NodeId
) -> Result<Option<NodeId>>
pub fn resolve_node(&self, node_id: NodeId, env: ParamEnv) -> Result<NodeId>
[src]
pub fn struct_def(&self, node_id: NodeId) -> Result<Arc<StructDef>>
[src]
pub fn resolve_field_access(
&self,
node_id: NodeId,
env: ParamEnv
) -> Result<(usize, &'a StructMember<'a>)>
[src]
&self,
node_id: NodeId,
env: ParamEnv
) -> Result<(usize, &'a StructMember<'a>)>
pub fn generated_scope(&self, node: &'a dyn ScopedNode<'a>) -> &'a Scope<'a>
[src]
pub fn scope_location(&self, node: &'a dyn AnyNode<'a>) -> ScopeLocation<'a>
[src]
pub fn resolve_local(
&self,
name: Name,
at: ScopeLocation<'a>,
skip_imports: bool
) -> Result<Option<&'a Def<'a>>>
[src]
&self,
name: Name,
at: ScopeLocation<'a>,
skip_imports: bool
) -> Result<Option<&'a Def<'a>>>
pub fn resolve_local_or_error(
&self,
name: Spanned<Name>,
at: ScopeLocation<'a>,
skip_imports: bool
) -> Result<&'a Def<'a>>
[src]
&self,
name: Spanned<Name>,
at: ScopeLocation<'a>,
skip_imports: bool
) -> Result<&'a Def<'a>>
pub fn resolve_namespace(
&self,
name: Name,
inside: &'a dyn ScopedNode<'a>
) -> Option<&'a Def<'a>>
[src]
&self,
name: Name,
inside: &'a dyn ScopedNode<'a>
) -> Option<&'a Def<'a>>
pub fn resolve_namespace_or_error(
&self,
name: Spanned<Name>,
inside: &'a dyn ScopedNode<'a>
) -> Result<&'a Def<'a>>
[src]
&self,
name: Spanned<Name>,
inside: &'a dyn ScopedNode<'a>
) -> Result<&'a Def<'a>>
pub fn resolve_hierarchical(
&self,
name: Name,
inside: &'a dyn ScopedNode<'a>
) -> Option<&'a Def<'a>>
[src]
&self,
name: Name,
inside: &'a dyn ScopedNode<'a>
) -> Option<&'a Def<'a>>
pub fn resolve_hierarchical_or_error(
&self,
name: Spanned<Name>,
inside: &'a dyn ScopedNode<'a>
) -> Result<&'a Def<'a>>
[src]
&self,
name: Spanned<Name>,
inside: &'a dyn ScopedNode<'a>
) -> Result<&'a Def<'a>>
pub fn resolve_imported_scope(
&self,
node: &'a ImportItem<'a>
) -> Result<&'a dyn ScopedNode<'a>>
[src]
&self,
node: &'a ImportItem<'a>
) -> Result<&'a dyn ScopedNode<'a>>
pub fn nameck(&self, node: &'a dyn AnyNode<'a>) -> bool
[src]
pub fn resolve_inst_target(&self, inst: &'a Inst<'a>) -> Result<InstTarget<'a>>
[src]
pub fn disamb_kind(&self, arg0: Ref<'a, dyn AnyNode<'a>>) -> Kind
[src]
pub fn disamb_type_or_expr(
&self,
arg0: Ref<'a, TypeOrExpr<'a>>
) -> Result<&'a TypeOrExpr<'a>>
[src]
&self,
arg0: Ref<'a, TypeOrExpr<'a>>
) -> Result<&'a TypeOrExpr<'a>>
pub fn type_of(
&self,
node_id: NodeId,
env: ParamEnv
) -> Result<&'a UnpackedType<'a>>
[src]
&self,
node_id: NodeId,
env: ParamEnv
) -> Result<&'a UnpackedType<'a>>
pub fn type_of_int_port(
&self,
arg0: Ref<'a, IntPort<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
[src]
&self,
arg0: Ref<'a, IntPort<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
pub fn type_of_ext_port(
&self,
arg0: Ref<'a, ExtPort<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
[src]
&self,
arg0: Ref<'a, ExtPort<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
pub fn type_of_port_decl(
&self,
arg0: Ref<'a, VarDeclName<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
[src]
&self,
arg0: Ref<'a, VarDeclName<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
pub fn type_of_var_decl(
&self,
arg0: Ref<'a, VarDeclName<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
[src]
&self,
arg0: Ref<'a, VarDeclName<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
pub fn type_of_net_decl(
&self,
arg0: Ref<'a, VarDeclName<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
[src]
&self,
arg0: Ref<'a, VarDeclName<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
pub fn type_of_struct_member(
&self,
arg0: Ref<'a, VarDeclName<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
[src]
&self,
arg0: Ref<'a, VarDeclName<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
pub fn type_of_value_param(
&self,
arg0: Ref<'a, ParamValueDecl<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
[src]
&self,
arg0: Ref<'a, ParamValueDecl<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
pub fn type_of_inst(
&self,
arg0: Ref<'a, Inst<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
[src]
&self,
arg0: Ref<'a, Inst<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
pub fn map_to_type(
&self,
arg0: Ref<'a, dyn AnyNode<'a>>,
env: ParamEnv
) -> Option<&'a UnpackedType<'a>>
[src]
&self,
arg0: Ref<'a, dyn AnyNode<'a>>,
env: ParamEnv
) -> Option<&'a UnpackedType<'a>>
pub fn map_to_type_or_error(
&self,
ast: Ref<'a, dyn AnyNode<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
[src]
&self,
ast: Ref<'a, dyn AnyNode<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
pub fn packed_type_from_ast(
&self,
ast: Ref<'a, Type<'a>>,
env: ParamEnv,
implicit_default: Option<PackedCore<'a>>
) -> &'a UnpackedType<'a>
[src]
&self,
ast: Ref<'a, Type<'a>>,
env: ParamEnv,
implicit_default: Option<PackedCore<'a>>
) -> &'a UnpackedType<'a>
pub fn unpacked_type_from_ast(
&self,
ast_type: Ref<'a, Type<'a>>,
arg1: Ref<'a, [TypeDim<'a>]>,
env: ParamEnv,
implicit_default: Option<PackedCore<'a>>
) -> &'a UnpackedType<'a>
[src]
&self,
ast_type: Ref<'a, Type<'a>>,
arg1: Ref<'a, [TypeDim<'a>]>,
env: ParamEnv,
implicit_default: Option<PackedCore<'a>>
) -> &'a UnpackedType<'a>
pub fn type_of_expr(
&self,
expr: Ref<'a, Expr<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
[src]
&self,
expr: Ref<'a, Expr<'a>>,
env: ParamEnv
) -> &'a UnpackedType<'a>
pub fn cast_type(&self, node_id: NodeId, env: ParamEnv) -> Option<CastType<'a>>
[src]
pub fn cast_expr_type(
&self,
arg0: Ref<'a, Expr<'a>>,
env: ParamEnv
) -> CastType<'a>
[src]
&self,
arg0: Ref<'a, Expr<'a>>,
env: ParamEnv
) -> CastType<'a>
pub fn self_determined_type(
&self,
node_id: NodeId,
env: ParamEnv
) -> Option<&'a UnpackedType<'a>>
[src]
&self,
node_id: NodeId,
env: ParamEnv
) -> Option<&'a UnpackedType<'a>>
pub fn need_self_determined_type(
&self,
node_id: NodeId,
env: ParamEnv
) -> &'a UnpackedType<'a>
[src]
&self,
node_id: NodeId,
env: ParamEnv
) -> &'a UnpackedType<'a>
pub fn operation_type(
&self,
node_id: NodeId,
env: ParamEnv
) -> Option<&'a UnpackedType<'a>>
[src]
&self,
node_id: NodeId,
env: ParamEnv
) -> Option<&'a UnpackedType<'a>>
pub fn need_operation_type(
&self,
node_id: NodeId,
env: ParamEnv
) -> &'a UnpackedType<'a>
[src]
&self,
node_id: NodeId,
env: ParamEnv
) -> &'a UnpackedType<'a>
pub fn type_context(
&self,
onto: NodeId,
env: ParamEnv
) -> Option<TypeContext<'a>>
[src]
&self,
onto: NodeId,
env: ParamEnv
) -> Option<TypeContext<'a>>
pub fn need_type_context(
&self,
node_id: NodeId,
env: ParamEnv
) -> TypeContext<'a>
[src]
&self,
node_id: NodeId,
env: ParamEnv
) -> TypeContext<'a>
pub fn constant_value_of(&self, node_id: NodeId, env: ParamEnv) -> Value<'a>
[src]
pub fn const_mir_rvalue_int(
&self,
mir: Ref<'a, Rvalue<'a>>
) -> Result<&'a BigInt>
[src]
&self,
mir: Ref<'a, Rvalue<'a>>
) -> Result<&'a BigInt>
pub fn const_mir_rvalue_string(
&self,
mir: Ref<'a, Rvalue<'a>>
) -> Result<&'a Vec<u8>>
[src]
&self,
mir: Ref<'a, Rvalue<'a>>
) -> Result<&'a Vec<u8>>
pub fn const_mir_rvalue(&self, arg0: Ref<'a, Rvalue<'a>>) -> Value<'a>
[src]
pub fn is_constant(&self, node_id: NodeId) -> Result<bool>
[src]
pub fn type_default_value(&self, ty: &'a UnpackedType<'a>) -> Value<'a>
[src]
Auto Trait Implementations
impl<'gcx> !RefUnwindSafe for GlobalContext<'gcx>
[src]
impl<'gcx> !Send for GlobalContext<'gcx>
[src]
impl<'gcx> !Sync for GlobalContext<'gcx>
[src]
impl<'gcx> Unpin for GlobalContext<'gcx>
[src]
impl<'gcx> !UnwindSafe for GlobalContext<'gcx>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<'a, T> TypeContext<'a> for T where
T: HasTypeStorage<'a>,
[src]
T: HasTypeStorage<'a>,