pub struct TestStruct {
pub var_type: Token,
pub var_name: String,
pub equals_sign: Token,
pub value: u32,
}Fields§
§var_type: Token§var_name: String§equals_sign: Token§value: u32Trait Implementations§
Source§impl Clone for TestStruct
impl Clone for TestStruct
Source§fn clone(&self) -> TestStruct
fn clone(&self) -> TestStruct
Returns a duplicate of the value. Read more
1.0.0 · 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 TestStruct
impl Debug for TestStruct
Source§impl Parsable<Token> for TestStruct
impl Parsable<Token> for TestStruct
fn parse<'a>( iter: &mut TokenIter<Token>, ) -> Result<TestStruct, ParseError<Token>>
type ApplyMatchTo = Self
fn parse_if_match<F: Fn(&Self::ApplyMatchTo) -> bool>(
iter: &mut TokenIter<TToken>,
matches: F,
pattern: Option<&'static str>,
) -> Result<Self, ParseError<TToken>>where
Self: Sized,
fn identifier() -> &'static str
Source§impl PartialEq for TestStruct
impl PartialEq for TestStruct
impl StructuralPartialEq for TestStruct
Auto Trait Implementations§
impl Freeze for TestStruct
impl RefUnwindSafe for TestStruct
impl Send for TestStruct
impl Sync for TestStruct
impl Unpin for TestStruct
impl UnwindSafe for TestStruct
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