pub struct Keys { /* private fields */ }
Implementations§
source§impl Keys
impl Keys
pub fn empty() -> Self
pub fn single(key: impl Into<KeyOrIndex>) -> Self
pub fn new(keys: impl Iterator<Item = KeyOrIndex>) -> Self
pub fn join(&self, key: impl Into<KeyOrIndex>) -> Self
pub fn extend<I, K>(&self, keys: I) -> Self
pub fn iter( &self ) -> impl ExactSizeIterator<Item = &KeyOrIndex> + DoubleEndedIterator
pub fn dotted(&self) -> &str
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn common_prefix_count(&self, other: &Self) -> usize
pub fn contains(&self, other: &Self) -> bool
pub fn part_of(&self, other: &Self) -> bool
pub fn skip_left(&self, n: usize) -> Self
pub fn skip_right(&self, n: usize) -> Self
pub fn all_text_range(&self) -> TextRange
Trait Implementations§
source§impl FromSyntax for Keys
impl FromSyntax for Keys
fn from_syntax(syntax: SyntaxElement) -> Self
source§impl IntoIterator for Keys
impl IntoIterator for Keys
source§impl PartialEq for Keys
impl PartialEq for Keys
impl Eq for Keys
Auto Trait Implementations§
impl !RefUnwindSafe for Keys
impl !Send for Keys
impl !Sync for Keys
impl Unpin for Keys
impl !UnwindSafe for Keys
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