pyrucast 0.14.0

Finite-element library in Rust, inspired by cast3m, exposed to Python
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Delegation methods — the "subject" face of this module's operators.
//!
//! A free function meeting the three conditions of `CONVENTIONS.md`
//! (§ "The verb also exposed as a method") is **also** exposed as a method of
//! its subject, to allow chaining. These methods contain **no** logic: they
//! call the free function, receiver included. The free function stays the
//! canonical form and carries the documentation.

use crate::containers::finite_element_space::FiniteElementSpace;
use crate::containers::mesh::Mesh;

impl FiniteElementSpace {
    /// See [`finite_element_space::restrict`](fn@crate::ops::finite_element_space::restrict).
    pub fn restrict(&self, mesh: &Mesh) -> FiniteElementSpace {
        crate::ops::finite_element_space::restrict(self, mesh)
    }
}