pub struct StringId<'a> {
pub id: ItemId,
pub name: &'a BStr,
}
Expand description
LF_STRING_ID
Fields§
§id: ItemId
§name: &'a BStr
Trait Implementations§
Source§impl<'a> Parse<'a> for StringId<'a>
impl<'a> Parse<'a> for StringId<'a>
Source§fn from_parser(p: &mut Parser<'a>) -> Result<Self, ParserError>
fn from_parser(p: &mut Parser<'a>) -> Result<Self, ParserError>
Parses an instance of
Self
from a Parser
.
This allows the caller to detect which bytes were not consumed at the end of the input.Auto Trait Implementations§
impl<'a> Freeze for StringId<'a>
impl<'a> RefUnwindSafe for StringId<'a>
impl<'a> Send for StringId<'a>
impl<'a> Sync for StringId<'a>
impl<'a> Unpin for StringId<'a>
impl<'a> UnwindSafe for StringId<'a>
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