pub struct RelationMember { /* private fields */ }Expand description
Relation member of a relation.
Implementations§
Source§impl RelationMember
impl RelationMember
Sourcepub unsafe fn new_unchecked() -> Self
pub unsafe fn new_unchecked() -> Self
Unsafe since the struct might not be self-contained
Source§impl RelationMember
impl RelationMember
pub fn new() -> Self
Sourcepub fn from_bytes(data: &[u8; 10]) -> &Self
pub fn from_bytes(data: &[u8; 10]) -> &Self
Create reference from byte array of matching size
Sourcepub fn from_bytes_mut(data: &mut [u8; 10]) -> &mut Self
pub fn from_bytes_mut(data: &mut [u8; 10]) -> &mut Self
Create reference from byte array of matching size
Sourcepub fn from_bytes_slice(data: &[u8]) -> Result<&Self, ResourceStorageError>
pub fn from_bytes_slice(data: &[u8]) -> Result<&Self, ResourceStorageError>
Create reference from byte array
Sourcepub fn from_bytes_slice_mut(
data: &mut [u8],
) -> Result<&mut Self, ResourceStorageError>
pub fn from_bytes_slice_mut( data: &mut [u8], ) -> Result<&mut Self, ResourceStorageError>
Create reference from byte array
pub fn as_bytes(&self) -> &[u8; 10]
Source§impl RelationMember
impl RelationMember
Sourcepub fn set_relation_idx(&mut self, value: Option<u64>)
pub fn set_relation_idx(&mut self, value: Option<u64>)
Index of the relation in the relations vector.
Sourcepub fn set_role_idx(&mut self, value: u64)
pub fn set_role_idx(&mut self, value: u64)
Optional textual field describing the function of the relation in the parent relation.
Index in stringtable.
Sourcepub fn fill_from(&mut self, other: &RelationMember)
pub fn fill_from(&mut self, other: &RelationMember)
Copies the data from other into this struct.
Trait Implementations§
Source§impl Clone for RelationMember
impl Clone for RelationMember
Source§fn clone(&self) -> RelationMember
fn clone(&self) -> RelationMember
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 RelationMember
impl Debug for RelationMember
Source§impl Default for RelationMember
impl Default for RelationMember
Source§impl PartialEq for RelationMember
impl PartialEq for RelationMember
Source§impl Struct for RelationMember
impl Struct for RelationMember
Source§const SIZE_IN_BYTES: usize = 10usize
const SIZE_IN_BYTES: usize = 10usize
Size of an object of this type in bytes.
Source§const IS_OVERLAPPING_WITH_NEXT: bool = false
const IS_OVERLAPPING_WITH_NEXT: bool = false
Whether this structs requires data of the next instance
Source§unsafe fn create_unchecked() -> Self
unsafe fn create_unchecked() -> Self
Create a new struct Read more
impl NoOverlap for RelationMember
Auto Trait Implementations§
impl Freeze for RelationMember
impl RefUnwindSafe for RelationMember
impl Send for RelationMember
impl Sync for RelationMember
impl Unpin for RelationMember
impl UnwindSafe for RelationMember
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