pub struct RecordValue<'a> {
pub name: StringInit<'a>,
pub init: TypedInit<'a>,
/* private fields */
}
Expand description
Fields§
§name: StringInit<'a>
§init: TypedInit<'a>
Implementations§
Source§impl RecordValue<'_>
impl RecordValue<'_>
Sourcepub unsafe fn from_raw(ptr: TableGenRecordValRef) -> Self
pub unsafe fn from_raw(ptr: TableGenRecordValRef) -> Self
Trait Implementations§
Source§impl<'a> Clone for RecordValue<'a>
impl<'a> Clone for RecordValue<'a>
Source§fn clone(&self) -> RecordValue<'a>
fn clone(&self) -> RecordValue<'a>
Returns a copy 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<'a> Debug for RecordValue<'a>
impl<'a> Debug for RecordValue<'a>
Source§impl Display for RecordValue<'_>
impl Display for RecordValue<'_>
Source§impl<'a> From<RecordValue<'a>> for TypedInit<'a>
impl<'a> From<RecordValue<'a>> for TypedInit<'a>
Source§fn from(value: RecordValue<'a>) -> Self
fn from(value: RecordValue<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for RecordValue<'a>
impl<'a> PartialEq for RecordValue<'a>
Source§impl SourceLoc for RecordValue<'_>
impl SourceLoc for RecordValue<'_>
Source§fn source_location(self) -> SourceLocation
fn source_location(self) -> SourceLocation
Returns the source location.
Source§impl<'a> TryFrom<RecordValue<'a>> for &'a str
impl<'a> TryFrom<RecordValue<'a>> for &'a str
Source§type Error = SourceError<TableGenError>
type Error = SourceError<TableGenError>
The type returned in the event of a conversion error.
Source§impl<'a> TryFrom<RecordValue<'a>> for DagInit<'a>
impl<'a> TryFrom<RecordValue<'a>> for DagInit<'a>
Source§type Error = SourceError<TableGenError>
type Error = SourceError<TableGenError>
The type returned in the event of a conversion error.
Source§impl<'a> TryFrom<RecordValue<'a>> for ListInit<'a>
impl<'a> TryFrom<RecordValue<'a>> for ListInit<'a>
Source§type Error = SourceError<TableGenError>
type Error = SourceError<TableGenError>
The type returned in the event of a conversion error.
Source§impl<'a> TryFrom<RecordValue<'a>> for Record<'a>
impl<'a> TryFrom<RecordValue<'a>> for Record<'a>
Source§type Error = SourceError<TableGenError>
type Error = SourceError<TableGenError>
The type returned in the event of a conversion error.
Source§impl<'a> TryFrom<RecordValue<'a>> for String
impl<'a> TryFrom<RecordValue<'a>> for String
Source§type Error = SourceError<TableGenError>
type Error = SourceError<TableGenError>
The type returned in the event of a conversion error.
Source§impl<'a> TryFrom<RecordValue<'a>> for Vec<BitInit<'a>>
impl<'a> TryFrom<RecordValue<'a>> for Vec<BitInit<'a>>
Source§type Error = SourceError<TableGenError>
type Error = SourceError<TableGenError>
The type returned in the event of a conversion error.
Source§impl<'a> TryFrom<RecordValue<'a>> for Vec<bool>
impl<'a> TryFrom<RecordValue<'a>> for Vec<bool>
Source§type Error = SourceError<TableGenError>
type Error = SourceError<TableGenError>
The type returned in the event of a conversion error.
Source§impl<'a> TryFrom<RecordValue<'a>> for bool
impl<'a> TryFrom<RecordValue<'a>> for bool
Source§type Error = SourceError<TableGenError>
type Error = SourceError<TableGenError>
The type returned in the event of a conversion error.
Source§impl<'a> TryFrom<RecordValue<'a>> for i64
impl<'a> TryFrom<RecordValue<'a>> for i64
Source§type Error = SourceError<TableGenError>
type Error = SourceError<TableGenError>
The type returned in the event of a conversion error.
impl<'a> Copy for RecordValue<'a>
impl<'a> Eq for RecordValue<'a>
impl<'a> StructuralPartialEq for RecordValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for RecordValue<'a>
impl<'a> RefUnwindSafe for RecordValue<'a>
impl<'a> !Send for RecordValue<'a>
impl<'a> !Sync for RecordValue<'a>
impl<'a> Unpin for RecordValue<'a>
impl<'a> UnwindSafe for RecordValue<'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