Trait DomainCreateSubDomains
pub trait DomainCreateSubDomains<S> {
type SubDomainIndex;
type VoxelIndex;
// Required method
fn create_subdomains(
&self,
n_subdomains: NonZero<usize>,
) -> Result<impl IntoIterator<Item = (Self::SubDomainIndex, S, Vec<Self::VoxelIndex>)>, DecomposeError>;
}
Expand description
Generate SubDomains from an existing Domain
Required Associated Types§
type SubDomainIndex
type SubDomainIndex
This should always be identical to Domain::SubDomainIndex.
type VoxelIndex
type VoxelIndex
This should always be identical to Domain::VoxelIndex.
Required Methods§
fn create_subdomains(
&self,
n_subdomains: NonZero<usize>,
) -> Result<impl IntoIterator<Item = (Self::SubDomainIndex, S, Vec<Self::VoxelIndex>)>, DecomposeError>
fn create_subdomains( &self, n_subdomains: NonZero<usize>, ) -> Result<impl IntoIterator<Item = (Self::SubDomainIndex, S, Vec<Self::VoxelIndex>)>, DecomposeError>
Generates at most n_subdomains
. This function can also return a lower amount of
subdomains but never less than 1.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.