Struct ra_ap_ide_completion::ImportEdit [−][src]
pub struct ImportEdit { pub import: LocatedImport, pub scope: ImportScope, }
Expand description
An extra import to add after the completion is applied.
Fields
import: LocatedImport
scope: ImportScope
Implementations
Attempts to insert the import to the given scope, producing a text edit. May return no edit in edge cases, such as scope already containing the import.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ImportEdit
impl !Send for ImportEdit
impl !Sync for ImportEdit
impl Unpin for ImportEdit
impl !UnwindSafe for ImportEdit
Blanket Implementations
Mutably borrows from an owned value. Read more
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<T> Any for T where
T: Any,