Struct ra_ap_ide::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
.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more