Docs.rs
  • glib-0.17.8
    • glib 0.17.8
    • Docs.rs crate page
    • MIT
    • Links
    • Homepage
    • Documentation
    • Repository
    • crates.io
    • Source
    • Owners
    • GuillaumeGomez
    • sdroege
    • bilelmoussaoui
    • github:gtk-rs:crates-io
    • Dependencies
      • bitflags ^1.0 normal
      • glib-sys ^0.17 normal
      • futures-channel ^0.3 normal
      • futures-core ^0.3 normal
      • futures-executor ^0.3 normal
      • futures-task ^0.3 normal
      • futures-util ^0.3 normal
      • gio-sys ^0.17 normal
      • glib-macros ^0.17.3 normal
      • gobject-sys ^0.17 normal
      • libc ^0.2 normal
      • memchr ^2.5.0 normal
      • once_cell ^1.0 normal
      • log ^0.4 normal
      • smallvec ^1.0 normal
      • thiserror ^1 normal
      • criterion ^0.4.0 dev
      • gir-format-check ^0.1 dev
      • tempfile ^3 dev
      • trybuild2 ^1 dev
    • Versions
    • 82.74% of the crate is documented
  • Go to latest version
  • Platform
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

ToValueOptional

Required Methods

  • to_value_optional

Implementations on Foreign Types

  • &T
  • Box<str>
  • NonNull<Pointee>
  • Path
  • PathBuf
  • String
  • str

Implementors

In glib::value

?
Change settings

Trait glib::value::ToValueOptional

source ·
pub trait ToValueOptional {
    // Required method
    fn to_value_optional(s: Option<&Self>) -> Value;
}
Expand description

Trait to convert an Option to a Value for optional types.

Required Methods§

source

fn to_value_optional(s: Option<&Self>) -> Value

Convert an Option to a Value.

Implementations on Foreign Types§

source§

impl ToValueOptional for PathBuf

source§

fn to_value_optional(s: Option<&Self>) -> Value

source§

impl ToValueOptional for NonNull<Pointee>

source§

fn to_value_optional(p: Option<&Self>) -> Value

source§

impl ToValueOptional for Path

source§

fn to_value_optional(s: Option<&Self>) -> Value

source§

impl ToValueOptional for Box<str>

source§

fn to_value_optional(s: Option<&Self>) -> Value

source§

impl<T: ToValueOptional + StaticType + ?Sized> ToValueOptional for &T

source§

fn to_value_optional(s: Option<&Self>) -> Value

source§

impl ToValueOptional for str

source§

fn to_value_optional(s: Option<&Self>) -> Value

source§

impl ToValueOptional for String

source§

fn to_value_optional(s: Option<&Self>) -> Value

Implementors§

source§

impl ToValueOptional for GStr

source§

impl ToValueOptional for GString

source§

impl ToValueOptional for BoxedValue