Struct vtflib::VtfLib [−][src]
#[must_use]pub struct VtfLib(_);
Expand description
Represents initialized library.
Only one of these can exist at any given time.
This struct is !Send + !Sync
since the library is not thread-safe.
Implementations
impl VtfLib
[src]
impl VtfLib
[src]#[must_use]pub fn initialize() -> Option<(Self, VtfGuard)>
[src]
#[must_use]pub fn initialize() -> Option<(Self, VtfGuard)>
[src]Initialize the library.
Returns None
if it’s already initialized.
Uninitialization happens when both returned structs are dropped.
#[must_use]pub fn get_version() -> u32
[src]
#[must_use]pub fn get_version() -> u32
[src]Get the library’s version number.
#[must_use]pub fn get_version_string() -> &'static str
[src]
#[must_use]pub fn get_version_string() -> &'static str
[src]Get the library’s version number string.
#[must_use]pub fn get_integer(&self, option: IntegerOption) -> i32
[src]
#[must_use]pub fn get_integer(&self, option: IntegerOption) -> i32
[src]Get the value of an integer configuration option.
pub fn set_integer(&self, option: IntegerOption, value: i32)
[src]
pub fn set_integer(&self, option: IntegerOption, value: i32)
[src]Set the value of an integer configuration option.
#[must_use]pub fn get_float(&self, option: FloatOption) -> f32
[src]
#[must_use]pub fn get_float(&self, option: FloatOption) -> f32
[src]Get the value of a floating point configuration option.
pub fn set_float(&self, option: FloatOption, value: f32)
[src]
pub fn set_float(&self, option: FloatOption, value: f32)
[src]Set the value of a floating point configuration option.
pub fn new_vtf_file(&self) -> VtfFile<'_>
[src]
pub fn new_vtf_file(&self) -> VtfFile<'_>
[src]