pub struct Sheaf {
pub sections: HashMap<OpenSet, Section>,
}Fields§
§sections: HashMap<OpenSet, Section>Implementations§
Source§impl Sheaf
impl Sheaf
pub fn new() -> Self
Sourcepub fn restriction(
&self,
section: &Section,
subset: &OpenSet,
) -> Result<Section, CohomologyError>
pub fn restriction( &self, section: &Section, subset: &OpenSet, ) -> Result<Section, CohomologyError>
Restrict a section to a smaller open set.
Sourcepub fn gluing_check(
&self,
local_sections: &[Section],
open_cover: &[OpenSet],
) -> Result<Section, CohomologyError>
pub fn gluing_check( &self, local_sections: &[Section], open_cover: &[OpenSet], ) -> Result<Section, CohomologyError>
Verify that a list of local sections agree on all pairwise intersections and, if so, return a global section over the union of the cover.
Uses Merkle sub-root comparison for O(1) per-overlap verification.
On failure, returns a CohomologyError::GluingFailure containing
the mismatched markings for conflict report generation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sheaf
impl<'de> Deserialize<'de> for Sheaf
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Sheaf
impl Freeze for Sheaf
impl RefUnwindSafe for Sheaf
impl Send for Sheaf
impl Sync for Sheaf
impl Unpin for Sheaf
impl UnsafeUnpin for Sheaf
impl UnwindSafe for Sheaf
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more