validate_optional_placement

Function validate_optional_placement 

Source
pub fn validate_optional_placement(
    config: Option<&PlacementConfig>,
) -> Result<(), PlacementRejection>
Expand description

Convenience wrapper for the common Option<&PlacementConfig> shape.

ยงErrors

Returns the first PlacementRejection encountered, or Ok(()) when the block is absent.