fn validate(self) -> Result<Self, InvalidAllocator> {
        let bvh_AllocCallbacks {
            alloc_cbk,
            free_cbk,
        } = self;
        match (alloc_cbk, free_cbk) {
            (Some(_), Some(_)) => Ok(self),
            _ => Err(InvalidAllocator { _priv: () }),
        }
    }
/// Validates that all of the contained function pointers are valid.
///
/// * If both members are not `null`, returns the struct unchanged.
/// * Otherwise, returns an `err`.
Validates that all of the contained function pointers are valid.
If both members are not `null`, returns the struct unchanged.
Otherwise, returns an `err`.
Validates that all of the contained function pointers are valid . If both members are not ` null ` returns the struct unchanged . Otherwise returns an ` err ` .
fn validate(self) -> Result<Self, InvalidAllocator> {
        let bvh_AllocCallbacks {
            alloc_cbk,
            free_cbk,
        } = self;
        match (alloc_cbk, free_cbk) {
            (Some(_), Some(_)) => Ok(self),
            _ => Err(InvalidAllocator { _priv: () }),
        }
    }
fn validate ( self ) -> Result < Self , InvalidAllocator > { let bvh_AllocCallbacks { alloc_cbk , free_cbk , } = self ; match ( alloc_cbk , free_cbk ) { ( Some ( _ ) , Some ( _ ) ) => Ok ( self ) , _ => Err ( InvalidAllocator { _priv : ( ) } ) , } }
Validates that all of the contained function pointers are valid.
Validates that all of the contained function pointers are valid .
self
self