pub struct Variables { /* private fields */ }Expand description
Handle to the installer’s variables array.
Implementations§
Source§impl Variables
impl Variables
Sourcepub fn string_size(&self) -> usize
pub fn string_size(&self) -> usize
The calling installer’s NSIS_MAX_STRLEN, in characters.
Sourcepub fn get(&self, var: Var) -> String
pub fn get(&self, var: Var) -> String
Reads a variable.
Returns an empty string when the installer passed no variables array,
because there is nothing sensible to read and $0 is empty by default.
Auto Trait Implementations§
impl !Send for Variables
impl !Sync for Variables
impl Freeze for Variables
impl RefUnwindSafe for Variables
impl Unpin for Variables
impl UnsafeUnpin for Variables
impl UnwindSafe for Variables
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