#[non_exhaustive]pub struct EditorContext {
pub bufferlist: Vec<String>,
pub global_vars: Vec<String>,
pub global_and_script_local_funcs: Vec<String>,
pub jumplist: Vec<String>,
pub registers: Vec<String>,
pub script_local_funcs: Vec<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bufferlist: Vec<String>§global_vars: Vec<String>§global_and_script_local_funcs: Vec<String>§jumplist: Vec<String>§registers: Vec<String>§script_local_funcs: Vec<String>Implementations§
Source§impl EditorContext
impl EditorContext
pub fn builder() -> EditorContextBuilder
Trait Implementations§
Source§impl Clone for EditorContext
impl Clone for EditorContext
Source§fn clone(&self) -> EditorContext
fn clone(&self) -> EditorContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditorContext
impl Debug for EditorContext
Source§impl Default for EditorContext
impl Default for EditorContext
Source§fn default() -> EditorContext
fn default() -> EditorContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EditorContext
impl<'de> Deserialize<'de> for EditorContext
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EditorContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EditorContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EditorContext> for Dictionary
impl From<EditorContext> for Dictionary
Source§fn from(ctx: EditorContext) -> Dictionary
fn from(ctx: EditorContext) -> Dictionary
Converts to this type from the input type.
Source§impl FromObject for EditorContext
impl FromObject for EditorContext
fn from_object(obj: Object) -> Result<EditorContext, Error>
Source§impl PartialEq for EditorContext
impl PartialEq for EditorContext
impl Eq for EditorContext
impl StructuralPartialEq for EditorContext
Auto Trait Implementations§
impl Freeze for EditorContext
impl RefUnwindSafe for EditorContext
impl !Send for EditorContext
impl !Sync for EditorContext
impl Unpin for EditorContext
impl UnwindSafe for EditorContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§type Error = Infallible
type Error = Infallible
The error type in the returned
Result.Source§fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
Converts the value into a
Result.