webbind 0.1.44

Rust bindings for the web api, auto-generated from WebIDL
Documentation
use super::*;

/// The MLWhereSupportLimits dictionary.
#[derive(Clone, Debug, PartialEq, PartialOrd)]
#[repr(transparent)]
pub struct MLWhereSupportLimits {
    inner: Any,
}

impl FromVal for MLWhereSupportLimits {
    fn from_val(v: &Any) -> Self {
        MLWhereSupportLimits { inner: v.clone() }
    }
    fn take_ownership(v: AnyHandle) -> Self {
        Self::from_val(&Any::take_ownership(v))
    }
    fn as_handle(&self) -> AnyHandle {
        self.inner.as_handle()
    }
}

impl core::ops::Deref for MLWhereSupportLimits {
    type Target = Any;
    fn deref(&self) -> &Self::Target {
        &self.inner
    }
}

impl core::ops::DerefMut for MLWhereSupportLimits {
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.inner
    }
}

impl AsRef<Any> for MLWhereSupportLimits {
    fn as_ref(&self) -> &Any {
        &self.inner
    }
}

impl AsMut<Any> for MLWhereSupportLimits {
    fn as_mut(&mut self) -> &mut Any {
        &mut self.inner
    }
}

impl From<MLWhereSupportLimits> for Any {
    fn from(s: MLWhereSupportLimits) -> Any {
        let handle = s.inner.as_handle();
        core::mem::forget(s);
        Any::take_ownership(handle)
    }
}

impl From<&MLWhereSupportLimits> for Any {
    fn from(s: &MLWhereSupportLimits) -> Any {
        s.inner.clone()
    }
}

impl MLWhereSupportLimits {
    /// Getter of the `condition` attribute.
    pub fn condition(&self) -> MLTensorLimits {
        self.inner.get("condition").as_::<MLTensorLimits>()
    }

    /// Setter of the `condition` attribute.
    pub fn set_condition(&mut self, value: &MLTensorLimits) {
        self.inner.set("condition", value);
    }
}
impl MLWhereSupportLimits {
    /// Getter of the `trueValue` attribute.
    pub fn true_value(&self) -> MLTensorLimits {
        self.inner.get("trueValue").as_::<MLTensorLimits>()
    }

    /// Setter of the `trueValue` attribute.
    pub fn set_true_value(&mut self, value: &MLTensorLimits) {
        self.inner.set("trueValue", value);
    }
}
impl MLWhereSupportLimits {
    /// Getter of the `falseValue` attribute.
    pub fn false_value(&self) -> MLTensorLimits {
        self.inner.get("falseValue").as_::<MLTensorLimits>()
    }

    /// Setter of the `falseValue` attribute.
    pub fn set_false_value(&mut self, value: &MLTensorLimits) {
        self.inner.set("falseValue", value);
    }
}
impl MLWhereSupportLimits {
    /// Getter of the `output` attribute.
    pub fn output(&self) -> MLDataTypeLimits {
        self.inner.get("output").as_::<MLDataTypeLimits>()
    }

    /// Setter of the `output` attribute.
    pub fn set_output(&mut self, value: &MLDataTypeLimits) {
        self.inner.set("output", value);
    }
}