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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 Freeze for GetLineResult
impl RefUnwindSafe for GetLineResult
impl Send for GetLineResult
impl Sync for GetLineResult
impl Unpin for GetLineResult
impl UnwindSafe for GetLineResult
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<'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