Docs.rs
  • oo-bindgen-0.8.6
    • oo-bindgen 0.8.6
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Homepage
    • crates.io
    • Source
    • Owners
    • jadamcrain
    • Dependencies
      • backtrace ^0.3 normal
      • clap ^4 normal
      • dunce ^1.0.1 normal
      • heck ^0.4 normal
      • lazy_static ^1.3 normal
      • platforms ^2 normal
      • regex ^1 normal
      • semver ^1 normal
      • serde ^1.0.126 normal
      • serde_json ^1 normal
      • thiserror ^1.0.20 normal
      • tracing ^0.1 normal
    • Versions
    • 93.75% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • 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

oo_bindgen0.8.6

InitializerValidator

Required Methods

  • validate_default_value

Provided Methods

  • bad_initializer_value

Object Safety

Implementors

In oo_bindgen::model

?
Change settings

Trait oo_bindgen::model::InitializerValidator

source ·
pub trait InitializerValidator {
    // Required method
    fn validate_default_value(
        &self,
        value: &InitializerDefault
    ) -> BindResult<ValidatedDefaultValue>;

    // Provided method
    fn bad_initializer_value(
        field_type: String,
        value: &InitializerDefault
    ) -> BindResult<ValidatedDefaultValue> { ... }
}

Required Methods§

source

fn validate_default_value( &self, value: &InitializerDefault ) -> BindResult<ValidatedDefaultValue>

Check that the value is valid for the type

Provided Methods§

source

fn bad_initializer_value( field_type: String, value: &InitializerDefault ) -> BindResult<ValidatedDefaultValue>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl InitializerValidator for BasicType

source§

impl InitializerValidator for CallbackArgStructField

source§

impl InitializerValidator for FunctionArgStructField

source§

impl InitializerValidator for FunctionReturnStructField

source§

impl InitializerValidator for Primitive

source§

impl InitializerValidator for UniversalStructField

source§

impl InitializerValidator for StringType

source§

impl InitializerValidator for AbstractIteratorHandle

source§

impl InitializerValidator for ClassDeclarationHandle

source§

impl InitializerValidator for CollectionHandle

source§

impl InitializerValidator for InterfaceHandle

source§

impl<F> InitializerValidator for Handle<Struct<F, Unvalidated>>
where F: StructFieldType,

source§

impl<T> InitializerValidator for UniversalOr<T>
where T: StructFieldType,