Struct ra_ap_ide::SourceChange [−][src]
pub struct SourceChange {
pub source_file_edits: HashMap<FileId, TextEdit, BuildHasherDefault<FxHasher>>,
pub file_system_edits: Vec<FileSystemEdit, Global>,
pub is_snippet: bool,
}
Fields
source_file_edits: HashMap<FileId, TextEdit, BuildHasherDefault<FxHasher>>
file_system_edits: Vec<FileSystemEdit, Global>
is_snippet: bool
Implementations
pub fn from_edits(
source_file_edits: HashMap<FileId, TextEdit, BuildHasherDefault<FxHasher>>,
file_system_edits: Vec<FileSystemEdit, Global>
) -> SourceChange
pub fn from_edits(
source_file_edits: HashMap<FileId, TextEdit, BuildHasherDefault<FxHasher>>,
file_system_edits: Vec<FileSystemEdit, Global>
) -> SourceChange
Creates a new SourceChange with the given label from the edits.
Trait Implementations
Returns the “default value” for a type. Read more
Extends a collection with the contents of an iterator. Read more
🔬 This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
🔬 This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Performs the conversion.
pub fn from(
source_file_edits: HashMap<FileId, TextEdit, BuildHasherDefault<FxHasher>>
) -> SourceChange
pub fn from(
source_file_edits: HashMap<FileId, TextEdit, BuildHasherDefault<FxHasher>>
) -> SourceChange
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for SourceChange
impl Send for SourceChange
impl Sync for SourceChange
impl Unpin for SourceChange
impl UnwindSafe for SourceChange
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