[−][src]Struct taplo::dom::KeyNode
Implementations
impl KeyNode
[src]
pub fn idents(&self) -> impl Iterator<Item = &SyntaxToken>
[src]
pub fn key_count(&self) -> usize
[src]
pub fn keys_str(&self) -> impl Iterator<Item = &str>
[src]
pub fn keys_str_stripped(&self) -> impl Iterator<Item = &str>
[src]
Quotes are removed from the keys.
pub fn full_key_string_stripped(&self) -> String
[src]
pub fn full_key_string(&self) -> String
[src]
pub fn is_part_of(&self, other: &KeyNode) -> bool
[src]
Determines whether the key starts with the same dotted keys as other.
pub fn contains(&self, other: &KeyNode) -> bool
[src]
Determines whether the key starts with the same dotted keys as other.
pub fn skip_left(self, n: usize) -> Self
[src]
retains n idents from the left, e.g.: outer.inner => outer there will be at least one ident remaining
pub fn retain_left(self, n: usize) -> Self
[src]
skips n idents from the left, e.g.: outer.inner => inner there will be at least one ident remaining
pub fn common_prefix_count(&self, other: &KeyNode) -> usize
[src]
Counts the shared prefix keys
pub fn additional_keys(&self) -> &[KeyNode]
[src]
Keys that are identical to this one but exist somewhere else in the document.
These are created when two dotted keys or arrays of tables are merged.
pub fn text_range(&self) -> TextRange
[src]
pub fn text_ranges(&self) -> TextRanges
[src]
Trait Implementations
impl Cast for KeyNode
[src]
fn cast(element: SyntaxElement) -> Option<Self>
[src]
impl Clone for KeyNode
[src]
impl Debug for KeyNode
[src]
impl Display for KeyNode
[src]
impl Eq for KeyNode
[src]
impl From<KeyNode> for Node
[src]
impl Hash for KeyNode
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl NodeSyntax for KeyNode
[src]
fn syntax(&self) -> SyntaxElement
[src]
impl PartialEq<KeyNode> for KeyNode
[src]
Auto Trait Implementations
impl !RefUnwindSafe for KeyNode
impl !Send for KeyNode
impl !Sync for KeyNode
impl Unpin for KeyNode
impl !UnwindSafe for KeyNode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,