pub struct DdIndex(/* private fields */);Expand description
Opaque MySQL data-dictionary dd::Index
Implementations§
Source§impl DdIndex
impl DdIndex
Sourcepub fn name(&self) -> String
pub fn name(&self) -> String
Index name as stored in the data dictionary (PRIMARY for the
primary key).
Sourcepub fn index_type(&self) -> IndexType
pub fn index_type(&self) -> IndexType
Index kind (primary / unique / non-unique / fulltext / spatial).
true for indexes the SE itself added and is not exposed via SQL.
Sourcepub fn element_count(&self) -> usize
pub fn element_count(&self) -> usize
Number of key parts in the index.
Sourcepub fn element_at(&self, i: usize) -> Option<&DdIndexElement>
pub fn element_at(&self, i: usize) -> Option<&DdIndexElement>
Borrow the ith key part (0-based). Returns None past the end.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DdIndex
impl RefUnwindSafe for DdIndex
impl Send for DdIndex
impl Sync for DdIndex
impl Unpin for DdIndex
impl UnsafeUnpin for DdIndex
impl UnwindSafe for DdIndex
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