Struct ion_schema::isl::isl_type::IslTypeImpl
source · [−]pub struct IslTypeImpl { /* private fields */ }Expand description
Represents both named and anonymous IslTypes and can be converted to a resolved type definition
Named ISL type grammar: type:: { name: <NAME>, <CONSTRAINT>...}
Anonymous ISL type grammar: { <CONSTRAINT>... }
Implementations
sourceimpl IslTypeImpl
impl IslTypeImpl
pub fn new(name: Option<String>, constraints: Vec<IslConstraint>) -> Self
pub fn name(&self) -> &Option<String>
pub fn constraints(&self) -> &[IslConstraint]
pub fn open_content(&self) -> bool
sourcepub fn from_owned_element(
ion: &OwnedElement,
inline_imported_types: &mut Vec<IslImportType>
) -> IonSchemaResult<Self>
pub fn from_owned_element(
ion: &OwnedElement,
inline_imported_types: &mut Vec<IslImportType>
) -> IonSchemaResult<Self>
Parse constraints inside an OwnedElement to an IslTypeImpl
Trait Implementations
sourceimpl Clone for IslTypeImpl
impl Clone for IslTypeImpl
sourcefn clone(&self) -> IslTypeImpl
fn clone(&self) -> IslTypeImpl
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for IslTypeImpl
impl Debug for IslTypeImpl
sourceimpl PartialEq<IslTypeImpl> for IslTypeImpl
impl PartialEq<IslTypeImpl> for IslTypeImpl
Auto Trait Implementations
impl RefUnwindSafe for IslTypeImpl
impl !Send for IslTypeImpl
impl !Sync for IslTypeImpl
impl Unpin for IslTypeImpl
impl UnwindSafe for IslTypeImpl
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