Struct tblgen::record::RecordValue
source · 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<'a> RecordValue<'a>
impl<'a> RecordValue<'a>
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<'a> Display for RecordValue<'a>
impl<'a> Display for RecordValue<'a>
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<RecordValue<'a>> for RecordValue<'a>
impl<'a> PartialEq<RecordValue<'a>> for RecordValue<'a>
source§fn eq(&self, other: &RecordValue<'a>) -> bool
fn eq(&self, other: &RecordValue<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> SourceLoc for RecordValue<'a>
impl<'a> SourceLoc for RecordValue<'a>
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
§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>
§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>
§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>
§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
§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>>
§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>
§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
§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
§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> StructuralEq for RecordValue<'a>
impl<'a> StructuralPartialEq for RecordValue<'a>
Auto Trait Implementations§
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