Enum nvim_utils::vim::func::GetLineResult
source · pub enum GetLineResult {
String(String),
Table(Vec<String>),
}
Available on crate feature
vim
only.Expand description
The result of a GetLine call, either a string or a table (array) of strings
Can be used with match, or if you know the type you can use into_string
or into_table
Variants§
Implementations§
source§impl GetLineResult
impl GetLineResult
pub fn into_string(self) -> LuaResult<String>
pub fn into_table(self) -> LuaResult<Vec<String>>
Trait Implementations§
source§impl Clone for GetLineResult
impl Clone for GetLineResult
source§fn clone(&self) -> GetLineResult
fn clone(&self) -> GetLineResult
Returns a copy 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 GetLineResult
impl Debug for GetLineResult
Auto Trait Implementations§
impl RefUnwindSafe for GetLineResult
impl Send for GetLineResult
impl Sync for GetLineResult
impl Unpin for GetLineResult
impl UnwindSafe for GetLineResult
Blanket Implementations§
source§impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for Twhere T: FromLua<'lua>,
source§fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
Performs the conversion. Read more