Enum vimvar::Scope [−][src]
pub enum Scope { Nothing, Buffer, Window, Tabpage, Global, Local, Script, FunctionArg, Vim, }
Expand description
Represents a vim variable scope
Variants
Implementations
impl Scope
[src]
impl Scope
[src]pub fn as_str(&self) -> &'static str
[src]
pub fn as_str(&self) -> &'static str
[src]Converts to a str representing scope
Examples
use vimvar::Scope; assert_eq!(Scope::Nothing.as_str(), ""); assert_eq!(Scope::Buffer.as_str(), "b:"); assert_eq!(Scope::Window.as_str(), "w:"); assert_eq!(Scope::Tabpage.as_str(), "t:"); assert_eq!(Scope::Global.as_str(), "g:"); assert_eq!(Scope::Local.as_str(), "l:"); assert_eq!(Scope::Script.as_str(), "s:"); assert_eq!(Scope::FunctionArg.as_str(), "a:"); assert_eq!(Scope::Vim.as_str(), "v:");
Trait Implementations
impl Copy for Scope
[src]
impl Eq for Scope
[src]
impl StructuralEq for Scope
[src]
impl StructuralPartialEq for Scope
[src]
Auto Trait Implementations
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnwindSafe for Scope
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more