mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-08 03:48:27 +00:00
Prepare for follow-on change
This commit is contained in:
parent
4de577fdda
commit
5beb8e8a54
@ -7,7 +7,6 @@ use crate::{layers::Layers, validation::ValidationConfig};
|
|||||||
/// An instance of the Fornjot core
|
/// An instance of the Fornjot core
|
||||||
///
|
///
|
||||||
/// This is the main entry point to `fj-core`'s API.
|
/// This is the main entry point to `fj-core`'s API.
|
||||||
#[derive(Default)]
|
|
||||||
pub struct Core {
|
pub struct Core {
|
||||||
/// The layers of data that make up the state of a core instance
|
/// The layers of data that make up the state of a core instance
|
||||||
pub layers: Layers,
|
pub layers: Layers,
|
||||||
@ -16,7 +15,9 @@ pub struct Core {
|
|||||||
impl Core {
|
impl Core {
|
||||||
/// Construct an instance of `Instance`
|
/// Construct an instance of `Instance`
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self::default()
|
Self {
|
||||||
|
layers: Layers::default(),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Construct an instance of `Instance`, using the provided configuration
|
/// Construct an instance of `Instance`, using the provided configuration
|
||||||
@ -25,3 +26,9 @@ impl Core {
|
|||||||
Self { layers }
|
Self { layers }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for Core {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user