[][src]Struct gauge_sys::ffi::RawNamedVariable

#[repr(transparent)]pub struct 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]

impl Copy for RawNamedVariable[src]

impl Debug for RawNamedVariable[src]

impl Eq for RawNamedVariable[src]

impl Hash for RawNamedVariable[src]

impl PartialEq<RawNamedVariable> for RawNamedVariable[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.