GcFloatExt

Trait GcFloatExt 

Source
pub trait GcFloatExt:
    IsA<GcFloat>
    + Sealed
    + 'static {
    // Provided methods
    fn display_notation(&self) -> GcDisplayNotation { ... }
    fn display_precision(&self) -> i64 { ... }
    fn inc(&self) -> Result<f64, Error> { ... }
    fn max(&self) -> Result<f64, Error> { ... }
    fn min(&self) -> Result<f64, Error> { ... }
    fn representation(&self) -> GcRepresentation { ... }
    fn unit(&self) -> Option<GString> { ... }
    fn value(&self) -> Result<f64, Error> { ... }
    fn impose_max(&self, maximum: f64) -> Result<(), Error> { ... }
    fn impose_min(&self, minimum: f64) -> Result<(), Error> { ... }
    fn set_value(&self, value: f64) -> Result<(), Error> { ... }
}
Expand description

Trait containing all GcFloat methods.

§Implementors

GcConverterNode, GcFloatNode, GcFloatRegNode, GcFloat, GcSwissKnifeNode

Provided Methods§

Source

fn display_notation(&self) -> GcDisplayNotation

Source

fn display_precision(&self) -> i64

Source

fn inc(&self) -> Result<f64, Error>

Source

fn max(&self) -> Result<f64, Error>

Source

fn min(&self) -> Result<f64, Error>

Source

fn representation(&self) -> GcRepresentation

Source

fn unit(&self) -> Option<GString>

Source

fn value(&self) -> Result<f64, Error>

Source

fn impose_max(&self, maximum: f64) -> Result<(), Error>

Source

fn impose_min(&self, minimum: f64) -> Result<(), Error>

Source

fn set_value(&self, value: f64) -> Result<(), Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§