pub enum IslType {
Named(IslTypeImpl),
Anonymous(IslTypeImpl),
}Expand description
Represents a type in an ISL schema.
Variants
Named(IslTypeImpl)
Anonymous(IslTypeImpl)
Implementations
sourceimpl IslType
impl IslType
sourcepub fn named<A: Into<String>, B: Into<Vec<IslConstraint>>>(
name: A,
constraints: B
) -> IslType
pub fn named<A: Into<String>, B: Into<Vec<IslConstraint>>>(
name: A,
constraints: B
) -> IslType
Creates a IslType::Named using the IslConstraint defined within it
sourcepub fn anonymous<A: Into<Vec<IslConstraint>>>(constraints: A) -> IslType
pub fn anonymous<A: Into<Vec<IslConstraint>>>(constraints: A) -> IslType
Creates a IslType::Anonymous using the IslConstraint defined within it
sourcepub fn constraints(&self) -> &[IslConstraint]
pub fn constraints(&self) -> &[IslConstraint]
Provides the underlying constraints of IslTypeImpl
sourcepub fn open_content(&self) -> bool
pub fn open_content(&self) -> bool
Verifies if the IslType allows open content or not
Trait Implementations
sourceimpl PartialEq<IslType> for IslType
impl PartialEq<IslType> for IslType
impl StructuralPartialEq for IslType
Auto Trait Implementations
impl RefUnwindSafe for IslType
impl !Send for IslType
impl !Sync for IslType
impl Unpin for IslType
impl UnwindSafe for IslType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more