pub struct ProjectedClassSpec<S> {
pub id: ProjectionId,
pub symbols: Vec<S>,
pub multiplicity: usize,
}Expand description
Symbol-based declaration of one projected aggregate class.
Fields§
§id: ProjectionIdStable class identity.
symbols: Vec<S>Source-alphabet symbols that project to this class.
multiplicity: usizeRequired number of class occurrences in the series.
Implementations§
Source§impl<S> ProjectedClassSpec<S>
impl<S> ProjectedClassSpec<S>
Sourcepub fn new(id: ProjectionId, symbols: Vec<S>, multiplicity: usize) -> Self
pub fn new(id: ProjectionId, symbols: Vec<S>, multiplicity: usize) -> Self
Constructs a class specification. Full membership is validated by the rule constructor.
Trait Implementations§
Source§impl<S: Clone> Clone for ProjectedClassSpec<S>
impl<S: Clone> Clone for ProjectedClassSpec<S>
Source§fn clone(&self) -> ProjectedClassSpec<S>
fn clone(&self) -> ProjectedClassSpec<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug> Debug for ProjectedClassSpec<S>
impl<S: Debug> Debug for ProjectedClassSpec<S>
impl<S: Eq> Eq for ProjectedClassSpec<S>
Source§impl<S: PartialEq> PartialEq for ProjectedClassSpec<S>
impl<S: PartialEq> PartialEq for ProjectedClassSpec<S>
impl<S: PartialEq> StructuralPartialEq for ProjectedClassSpec<S>
Auto Trait Implementations§
impl<S> Freeze for ProjectedClassSpec<S>
impl<S> RefUnwindSafe for ProjectedClassSpec<S>where
S: RefUnwindSafe,
impl<S> Send for ProjectedClassSpec<S>where
S: Send,
impl<S> Sync for ProjectedClassSpec<S>where
S: Sync,
impl<S> Unpin for ProjectedClassSpec<S>where
S: Unpin,
impl<S> UnsafeUnpin for ProjectedClassSpec<S>
impl<S> UnwindSafe for ProjectedClassSpec<S>where
S: UnwindSafe,
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