Enum mz_avro::schema::SchemaPieceOrNamed
source · pub enum SchemaPieceOrNamed {
Piece(SchemaPiece),
Named(usize),
}
Variants§
Piece(SchemaPiece)
Named(usize)
Implementations§
source§impl SchemaPieceOrNamed
impl SchemaPieceOrNamed
pub fn get_human_name(&self, root: &Schema) -> String
pub fn get_piece_and_name<'a>( &'a self, root: &'a Schema ) -> (&'a SchemaPiece, Option<&'a FullName>)
pub fn as_ref(&self) -> SchemaPieceRefOrNamed<'_>
Trait Implementations§
source§impl Clone for SchemaPieceOrNamed
impl Clone for SchemaPieceOrNamed
source§fn clone(&self) -> SchemaPieceOrNamed
fn clone(&self) -> SchemaPieceOrNamed
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 Debug for SchemaPieceOrNamed
impl Debug for SchemaPieceOrNamed
source§impl From<SchemaPiece> for SchemaPieceOrNamed
impl From<SchemaPiece> for SchemaPieceOrNamed
source§fn from(piece: SchemaPiece) -> Self
fn from(piece: SchemaPiece) -> Self
Converts to this type from the input type.
source§impl PartialEq<SchemaPieceOrNamed> for SchemaPieceOrNamed
impl PartialEq<SchemaPieceOrNamed> for SchemaPieceOrNamed
source§fn eq(&self, other: &SchemaPieceOrNamed) -> bool
fn eq(&self, other: &SchemaPieceOrNamed) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SchemaPieceOrNamed
Auto Trait Implementations§
impl RefUnwindSafe for SchemaPieceOrNamed
impl Send for SchemaPieceOrNamed
impl Sync for SchemaPieceOrNamed
impl Unpin for SchemaPieceOrNamed
impl UnwindSafe for SchemaPieceOrNamed
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