pub struct Catalog {
pub labels: HashMap<Label, LabelDef>,
pub indexes: Vec<IndexDef>,
pub invariants: Vec<Invariant>,
}Expand description
カタログ
Fields§
§labels: HashMap<Label, LabelDef>§indexes: Vec<IndexDef>§invariants: Vec<Invariant>Implementations§
Source§impl Catalog
impl Catalog
Sourcepub fn add_invariant(&mut self, inv: Invariant)
pub fn add_invariant(&mut self, inv: Invariant)
不変条件を追加
Sourcepub fn get_property_def(
&self,
label: &Label,
prop: &PropertyKey,
) -> Option<&PropertyDef>
pub fn get_property_def( &self, label: &Label, prop: &PropertyKey, ) -> Option<&PropertyDef>
ラベルのプロパティを取得
Sourcepub fn has_property(&self, label: &Label, prop: &PropertyKey) -> bool
pub fn has_property(&self, label: &Label, prop: &PropertyKey) -> bool
ラベルにプロパティが存在するかチェック
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Catalog
impl<'de> Deserialize<'de> for Catalog
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 Freeze for Catalog
impl RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl UnwindSafe for Catalog
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