Struct distant_core::LspContent [−][src]
pub struct LspContent(_);
Expand description
Represents the content for LSP data
Implementations
Converts all URIs with file://
as the scheme to distant://
instead
Converts all URIs with distant://
as the scheme to file://
instead
Creates a session’s info by inspecting the content for session parameters, removing the session parameters from the content
Methods from Deref<Target = Map<String, Value>>
Returns a reference to the value corresponding to the key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Returns true if the map contains a value for the specified key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Returns a mutable reference to the value corresponding to the key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Inserts a key-value pair into the map.
If the map did not have this key present, None
is returned.
If the map did have this key present, the value is updated, and the old value is returned.
Removes a key from the map, returning the value at the key if the key was previously in the map.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Removes a key from the map, returning the stored key and value if the key was previously in the map.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Moves all elements from other into Self, leaving other empty.
Gets the given key’s corresponding entry in the map for in-place manipulation.
Gets an iterator over mutable values of the map.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for LspContent
impl Send for LspContent
impl Sync for LspContent
impl Unpin for LspContent
impl UnwindSafe for LspContent
Blanket Implementations
Mutably borrows from an owned value. Read more