pub fn is_primitive(&self) -> bool {
        let name = &*self.0.to_string();

        #[cfg(not(any(
            feature = "chrono",
            feature = "chrono_with_format",
            feature = "decimal",
            feature = "rocket_extras",
            feature = "uuid"
        )))]
        {
            is_primitive(name)
        }

        #[cfg(any(
            feature = "chrono",
            feature = "chrono_with_format",
            feature = "decimal",
            feature = "rocket_extras",
            feature = "uuid",
        ))]
        {
            let mut primitive = is_primitive(name);

            #[cfg(any(feature = "chrono", feature = "chrono_with_format"))]
            if !primitive {
                primitive = is_primitive_chrono(name);
            }

            #[cfg(feature = "decimal")]
            if !primitive {
                primitive = is_primitive_rust_decimal(name);
            }

            #[cfg(feature = "rocket_extras")]
            if !primitive {
                primitive = matches!(name, "PathBuf");
            }

            #[cfg(feature = "uuid")]
            if !primitive {
                primitive = matches!(name, "Uuid");
            }

            primitive
        }
    }
/// Check whether type is known to be primitive in wich case returns true.
Check whether type is known to be primitive in wich case returns true.
Check whether type is known to be primitive in wich case returns true .
pub fn is_primitive(&self) -> bool {
        let name = &*self.0.to_string();
        #[cfg(not(any(
            feature = "chrono",
            feature = "chrono_with_format",
            feature = "decimal",
            feature = "rocket_extras",
            feature = "uuid"
        )))]
        {
            is_primitive(name)
        }
        #[cfg(any(
            feature = "chrono",
            feature = "chrono_with_format",
            feature = "decimal",
            feature = "rocket_extras",
            feature = "uuid",
        ))]
        {
            let mut primitive = is_primitive(name);
            #[cfg(any(feature = "chrono", feature = "chrono_with_format"))]
            if !primitive {
                primitive = is_primitive_chrono(name);
            }
            #[cfg(feature = "decimal")]
            if !primitive {
                primitive = is_primitive_rust_decimal(name);
            }
            #[cfg(feature = "rocket_extras")]
            if !primitive {
                primitive = matches!(name, "PathBuf");
            }
            #[cfg(feature = "uuid")]
            if !primitive {
                primitive = matches!(name, "Uuid");
            }
            primitive
        }
    }
pub fn is_primitive ( & self ) -> bool { let name = & * self . 0 . to_string ( ) ; # [ cfg ( not ( any ( feature " " feature " " feature " " feature " " feature " " ) ) ) ] { is_primitive ( name ) } # [ cfg ( any ( feature " " feature " " feature " " feature " " feature " " ) ) ] { let mut primitive = is_primitive ( name ) ; # [ cfg ( any ( feature " " feature " " ) ) ] if ! primitive { primitive = is_primitive_chrono ( name ) ; } # [ cfg ( feature " " ) ] if ! primitive { primitive = is_primitive_rust_decimal ( name ) ; } # [ cfg ( feature " " ) ] if ! primitive { primitive = matches ! ( name " " ) ; } # [ cfg ( feature " " ) ] if ! primitive { primitive = matches ! ( name " " ) ; } primitive } }
Check whether type is known to be primitive in wich case returns true.
Check whether type is known to be primitive in wich case returns true .
&self