Trait glib::value::ToValueOptional[][src]

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

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

Required methods

Convert an Option to a Value.

Implementations on Foreign Types

Implementors

impl ToValueOptional for Context

impl ToValueOptional for Device

impl ToValueOptional for ImageSurface

impl ToValueOptional for RecordingSurface

impl ToValueOptional for Rectangle

impl ToValueOptional for RectangleInt

impl ToValueOptional for Region

impl ToValueOptional for Surface

impl ToValueOptional for XCBSurface

impl ToValueOptional for PdfSurface

impl ToValueOptional for PsSurface

impl ToValueOptional for SvgSurface

impl ToValueOptional for QuartzSurface

impl ToValueOptional for Win32Surface