pub struct Entry(/* private fields */);Expand description
A key-value entry in a group
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn new_localized(key: &str, locale: &str, value: &str) -> Entry
pub fn new_localized(key: &str, locale: &str, value: &str) -> Entry
Create a new localized entry with key[locale]=value
Sourcepub fn locale(&self) -> Option<String>
pub fn locale(&self) -> Option<String>
Get the locale suffix if present (e.g., “de_DE” from “Name[de_DE]”)
Sourcepub fn syntax(&self) -> &SyntaxNode<Lang>
pub fn syntax(&self) -> &SyntaxNode<Lang>
Get the raw syntax node
Trait Implementations§
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl !RefUnwindSafe for Entry
impl !Send for Entry
impl !Sync for Entry
impl Unpin for Entry
impl !UnwindSafe for Entry
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