[−][src]Struct gauge_sys::ffi::RawNamedVariable
A raw named variable identifier for Gauge API FFI
Implementations
impl RawNamedVariable
[src]
pub unsafe fn register_new(name: &str) -> Self
[src]
Registers a new named variable
Returns a named variable ID used for later interactions with this variable.
Safety
The name
string must be null-terminated.
pub fn set(self, value: f64)
[src]
Sets the associated named variable to the provided value
pub fn get(self) -> f64
[src]
Gets the value of the associated named variable
Trait Implementations
impl Clone for RawNamedVariable
[src]
fn clone(&self) -> RawNamedVariable
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RawNamedVariable
[src]
impl Debug for RawNamedVariable
[src]
impl Eq for RawNamedVariable
[src]
impl Hash for RawNamedVariable
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<RawNamedVariable> for RawNamedVariable
[src]
fn eq(&self, other: &RawNamedVariable) -> bool
[src]
fn ne(&self, other: &RawNamedVariable) -> bool
[src]
impl StructuralEq for RawNamedVariable
[src]
impl StructuralPartialEq for RawNamedVariable
[src]
Auto Trait Implementations
impl RefUnwindSafe for RawNamedVariable
impl Send for RawNamedVariable
impl Sync for RawNamedVariable
impl Unpin for RawNamedVariable
impl UnwindSafe for RawNamedVariable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,