pub struct SelectionFit {
pub roles: Vec<Vec<Role>>,
pub fits: Vec<&'static str>,
}Expand description
What an editor offers for a selection: what each entity can be used as, and which constructions fit — by the same matching a step applies.
Fields§
§roles: Vec<Vec<Role>>Per selected entity; none for one the part does not have.
fits: Vec<&'static str>The method of every construction that fits.
Trait Implementations§
Source§impl Clone for SelectionFit
impl Clone for SelectionFit
Source§fn clone(&self) -> SelectionFit
fn clone(&self) -> SelectionFit
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 Debug for SelectionFit
impl Debug for SelectionFit
Source§impl PartialEq for SelectionFit
impl PartialEq for SelectionFit
Source§fn eq(&self, other: &SelectionFit) -> bool
fn eq(&self, other: &SelectionFit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SelectionFit
impl Serialize for SelectionFit
impl StructuralPartialEq for SelectionFit
Auto Trait Implementations§
impl Freeze for SelectionFit
impl RefUnwindSafe for SelectionFit
impl Send for SelectionFit
impl Sync for SelectionFit
impl Unpin for SelectionFit
impl UnsafeUnpin for SelectionFit
impl UnwindSafe for SelectionFit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more