Struct test_sst_importer::TestEngine [−][src]
Fields
db: Arc<DB>
shared_block_cache: bool
Implementations
impl RocksEngine
[src][−]
pub fn from_db(db: Arc<DB>) -> RocksEngine
[src]
pub fn from_ref(db: &Arc<DB>) -> &RocksEngine
[src]
pub fn as_inner(&self) -> &Arc<DB>
[src]
pub fn get_sync_db(&self) -> Arc<DB>
[src]
pub fn exists(path: &str) -> bool
[src]
pub fn set_shared_block_cache(&mut self, enable: bool)
[src]
Trait Implementations
impl CFNamesExt for RocksEngine
[src][+]
impl CFOptionsExt for RocksEngine
[src][+]
type ColumnFamilyOptions = RocksColumnFamilyOptions
pub fn get_options_cf(
&self,
cf: &str
) -> Result<<RocksEngine as CFOptionsExt>::ColumnFamilyOptions, Error>
[src]
&self,
cf: &str
) -> Result<<RocksEngine as CFOptionsExt>::ColumnFamilyOptions, Error>
pub fn set_options_cf(
&self,
cf: &str,
options: &[(&str, &str)]
) -> Result<(), Error>
[src]
&self,
cf: &str,
options: &[(&str, &str)]
) -> Result<(), Error>
impl Clone for RocksEngine
[src][+]
pub fn clone(&self) -> RocksEngine
[src][−]
Returns a copy of the value. Read more
pub fn clone_from(&mut self, source: &Self)
1.0.0[src][−]
Performs copy-assignment from source
. Read more
impl CompactExt for RocksEngine
[src][+]
type CompactedEvent = RocksCompactedEvent
pub fn auto_compactions_is_disabled(&self) -> Result<bool, Error>
[src][−]
Checks whether any column family sets disable_auto_compactions
to True
or not.
pub fn compact_range(
&self,
cf: &str,
start_key: Option<&[u8]>,
end_key: Option<&[u8]>,
exclusive_manual: bool,
max_subcompactions: u32
) -> Result<(), Error>
[src][−]
&self,
cf: &str,
start_key: Option<&[u8]>,
end_key: Option<&[u8]>,
exclusive_manual: bool,
max_subcompactions: u32
) -> Result<(), Error>
Compacts the column families in the specified range by manual or not.
pub fn compact_files_in_range(
&self,
start: Option<&[u8]>,
end: Option<&[u8]>,
output_level: Option<i32>
) -> Result<(), Error>
[src][−]
&self,
start: Option<&[u8]>,
end: Option<&[u8]>,
output_level: Option<i32>
) -> Result<(), Error>
Compacts files in the range and above the output level. Compacts all files if the range is not specified. Compacts all files to the bottommost level if the output level is not specified. Read more
pub fn compact_files_in_range_cf(
&self,
cf: &str,
start: Option<&[u8]>,
end: Option<&[u8]>,
output_level: Option<i32>
) -> Result<(), Error>
[src][−]
&self,
cf: &str,
start: Option<&[u8]>,
end: Option<&[u8]>,
output_level: Option<i32>
) -> Result<(), Error>
Compacts files in the range and above the output level of the given column family. Compacts all files to the bottommost level if the output level is not specified. Read more
pub fn compact_files_cf(
&self,
cf: &str,
files: Vec<String, Global>,
output_level: Option<i32>,
max_subcompactions: u32,
exclude_l0: bool
) -> Result<(), Error>
[src]
&self,
cf: &str,
files: Vec<String, Global>,
output_level: Option<i32>,
max_subcompactions: u32,
exclude_l0: bool
) -> Result<(), Error>
impl DBOptionsExt for RocksEngine
[src][+]
type DBOptions = RocksDBOptions
pub fn get_db_options(&self) -> <RocksEngine as DBOptionsExt>::DBOptions
[src]
pub fn set_db_options(&self, options: &[(&str, &str)]) -> Result<(), Error>
[src]
impl Debug for RocksEngine
[src][+]
pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
[src][−]
Formats the value using the given formatter. Read more
impl ImportExt for RocksEngine
[src][+]
type IngestExternalFileOptions = RocksIngestExternalFileOptions
pub fn ingest_external_file_cf(
&self,
cf: &str,
opts: &<RocksEngine as ImportExt>::IngestExternalFileOptions,
files: &[&str]
) -> Result<(), Error>
[src]
&self,
cf: &str,
opts: &<RocksEngine as ImportExt>::IngestExternalFileOptions,
files: &[&str]
) -> Result<(), Error>
pub fn reset_global_seq<P>(&self, cf: &str, path: P) -> Result<(), Error> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
impl Iterable for RocksEngine
[src][+]
type Iterator = RocksEngineIterator
pub fn iterator_opt(
&self,
opts: IterOptions
) -> Result<<RocksEngine as Iterable>::Iterator, Error>
[src]
&self,
opts: IterOptions
) -> Result<<RocksEngine as Iterable>::Iterator, Error>
pub fn iterator_cf_opt(
&self,
cf: &str,
opts: IterOptions
) -> Result<<RocksEngine as Iterable>::Iterator, Error>
[src]
&self,
cf: &str,
opts: IterOptions
) -> Result<<RocksEngine as Iterable>::Iterator, Error>
pub fn iterator(&self) -> Result<Self::Iterator, Error>
[src]
pub fn iterator_cf(&self, cf: &str) -> Result<Self::Iterator, Error>
[src]
pub fn scan<F>(
&self,
start_key: &[u8],
end_key: &[u8],
fill_cache: bool,
f: F
) -> Result<(), Error> where
F: FnMut(&[u8], &[u8]) -> Result<bool, Error>,
[src]
&self,
start_key: &[u8],
end_key: &[u8],
fill_cache: bool,
f: F
) -> Result<(), Error> where
F: FnMut(&[u8], &[u8]) -> Result<bool, Error>,
pub fn scan_cf<F>(
&self,
cf: &str,
start_key: &[u8],
end_key: &[u8],
fill_cache: bool,
f: F
) -> Result<(), Error> where
F: FnMut(&[u8], &[u8]) -> Result<bool, Error>,
[src]
&self,
cf: &str,
start_key: &[u8],
end_key: &[u8],
fill_cache: bool,
f: F
) -> Result<(), Error> where
F: FnMut(&[u8], &[u8]) -> Result<bool, Error>,
pub fn seek(
&self,
key: &[u8]
) -> Result<Option<(Vec<u8, Global>, Vec<u8, Global>)>, Error>
[src]
&self,
key: &[u8]
) -> Result<Option<(Vec<u8, Global>, Vec<u8, Global>)>, Error>
pub fn seek_cf(
&self,
cf: &str,
key: &[u8]
) -> Result<Option<(Vec<u8, Global>, Vec<u8, Global>)>, Error>
[src]
&self,
cf: &str,
key: &[u8]
) -> Result<Option<(Vec<u8, Global>, Vec<u8, Global>)>, Error>
impl KvEngine for RocksEngine
[src][+]
type Snapshot = RocksSnapshot
A consistent read-only snapshot of the database
pub fn snapshot(&self) -> RocksSnapshot
[src][−]
Create a snapshot
pub fn sync(&self) -> Result<(), Error>
[src][−]
Syncs any writes to disk
pub fn flush_metrics(&self, instance: &str)
[src][−]
Flush metrics to prometheus Read more
pub fn reset_statistics(&self)
[src][−]
Reset internal statistics
pub fn bad_downcast<T>(&self) -> &T where
T: 'static,
[src][−]
T: 'static,
Cast to a concrete engine type Read more
impl MiscExt for RocksEngine
[src][+]
pub fn flush(&self, sync: bool) -> Result<(), Error>
[src]
pub fn flush_cf(&self, cf: &str, sync: bool) -> Result<(), Error>
[src]
pub fn delete_ranges_cf(
&self,
cf: &str,
strategy: DeleteStrategy,
ranges: &[Range<'_>]
) -> Result<(), Error>
[src]
&self,
cf: &str,
strategy: DeleteStrategy,
ranges: &[Range<'_>]
) -> Result<(), Error>
pub fn get_approximate_memtable_stats_cf(
&self,
cf: &str,
range: &Range<'_>
) -> Result<(u64, u64), Error>
[src][−]
&self,
cf: &str,
range: &Range<'_>
) -> Result<(u64, u64), Error>
Return the approximate number of records and size in the range of memtables of the cf.
pub fn ingest_maybe_slowdown_writes(&self, cf: &str) -> Result<bool, Error>
[src]
pub fn get_engine_used_size(&self) -> Result<u64, Error>
[src][−]
Gets total used size of rocksdb engine, including: Read more
pub fn roughly_cleanup_ranges(
&self,
ranges: &[(Vec<u8, Global>, Vec<u8, Global>)]
) -> Result<(), Error>
[src][−]
&self,
ranges: &[(Vec<u8, Global>, Vec<u8, Global>)]
) -> Result<(), Error>
Roughly deletes files in multiple ranges. Read more
pub fn path(&self) -> &str
[src][−]
The path to the directory on the filesystem where the database is stored
pub fn sync_wal(&self) -> Result<(), Error>
[src]
pub fn exists(path: &str) -> bool
[src][−]
Check whether a database exists at a given path
pub fn dump_stats(&self) -> Result<String, Error>
[src][−]
Dump stats about the database into a string. Read more
pub fn get_latest_sequence_number(&self) -> u64
[src]
pub fn get_oldest_snapshot_sequence_number(&self) -> Option<u64>
[src]
pub fn get_total_sst_files_size_cf(
&self,
cf: &str
) -> Result<Option<u64>, Error>
[src]
&self,
cf: &str
) -> Result<Option<u64>, Error>
pub fn get_range_entries_and_versions(
&self,
cf: &str,
start: &[u8],
end: &[u8]
) -> Result<Option<(u64, u64)>, Error>
[src]
&self,
cf: &str,
start: &[u8],
end: &[u8]
) -> Result<Option<(u64, u64)>, Error>
pub fn get_cf_num_files_at_level(
&self,
cf: &str,
level: usize
) -> Result<Option<u64>, Error>
[src]
&self,
cf: &str,
level: usize
) -> Result<Option<u64>, Error>
pub fn get_cf_num_immutable_mem_table(
&self,
cf: &str
) -> Result<Option<u64>, Error>
[src]
&self,
cf: &str
) -> Result<Option<u64>, Error>
pub fn get_cf_compaction_pending_bytes(
&self,
cf: &str
) -> Result<Option<u64>, Error>
[src]
&self,
cf: &str
) -> Result<Option<u64>, Error>
pub fn is_stalled_or_stopped(&self) -> bool
[src]
pub fn delete_all_in_range(
&self,
strategy: DeleteStrategy,
ranges: &[Range<'_>]
) -> Result<(), Error>
[src]
&self,
strategy: DeleteStrategy,
ranges: &[Range<'_>]
) -> Result<(), Error>
impl MvccPropertiesExt for RocksEngine
[src][+]
pub fn get_mvcc_properties_cf(
&self,
cf: &str,
safe_point: TimeStamp,
start_key: &[u8],
end_key: &[u8]
) -> Option<MvccProperties>
[src]
&self,
cf: &str,
safe_point: TimeStamp,
start_key: &[u8],
end_key: &[u8]
) -> Option<MvccProperties>
impl Peekable for RocksEngine
[src][+]
type DBVector = RocksDBVector
The byte-vector type through which the database returns read values.
pub fn get_value_opt(
&self,
opts: &ReadOptions,
key: &[u8]
) -> Result<Option<RocksDBVector>, Error>
[src][−]
&self,
opts: &ReadOptions,
key: &[u8]
) -> Result<Option<RocksDBVector>, Error>
Read a value for a key, given a set of options. Read more
pub fn get_value_cf_opt(
&self,
opts: &ReadOptions,
cf: &str,
key: &[u8]
) -> Result<Option<RocksDBVector>, Error>
[src][−]
&self,
opts: &ReadOptions,
cf: &str,
key: &[u8]
) -> Result<Option<RocksDBVector>, Error>
Read a value for a key from a given column family, given a set of options. Read more
pub fn get_value(&self, key: &[u8]) -> Result<Option<Self::DBVector>, Error>
[src][−]
Read a value for a key. Read more
pub fn get_value_cf(
&self,
cf: &str,
key: &[u8]
) -> Result<Option<Self::DBVector>, Error>
[src][−]
&self,
cf: &str,
key: &[u8]
) -> Result<Option<Self::DBVector>, Error>
Read a value for a key from a given column family. Read more
pub fn get_msg<M>(&self, key: &[u8]) -> Result<Option<M>, Error> where
M: Message + Default,
[src][−]
M: Message + Default,
Read a value and return it as a protobuf message.
pub fn get_msg_cf<M>(&self, cf: &str, key: &[u8]) -> Result<Option<M>, Error> where
M: Message + Default,
[src][−]
M: Message + Default,
Read a value and return it as a protobuf message.
impl PerfContextExt for RocksEngine
[src][+]
type PerfContext = RocksPerfContext
pub fn get_perf_context(
&self,
level: PerfLevel,
kind: PerfContextKind
) -> <RocksEngine as PerfContextExt>::PerfContext
[src]
&self,
level: PerfLevel,
kind: PerfContextKind
) -> <RocksEngine as PerfContextExt>::PerfContext
impl RaftEngine for RocksEngine
[src][+]
type LogBatch = RocksWriteBatch
pub fn log_batch(
&self,
capacity: usize
) -> <RocksEngine as RaftEngine>::LogBatch
[src]
&self,
capacity: usize
) -> <RocksEngine as RaftEngine>::LogBatch
pub fn sync(&self) -> Result<(), Error>
[src][−]
Synchronize the Raft engine.
pub fn get_raft_state(
&self,
raft_group_id: u64
) -> Result<Option<RaftLocalState>, Error>
[src]
&self,
raft_group_id: u64
) -> Result<Option<RaftLocalState>, Error>
pub fn get_entry(
&self,
raft_group_id: u64,
index: u64
) -> Result<Option<Entry>, Error>
[src]
&self,
raft_group_id: u64,
index: u64
) -> Result<Option<Entry>, Error>
pub fn fetch_entries_to(
&self,
region_id: u64,
low: u64,
high: u64,
max_size: Option<usize>,
buf: &mut Vec<Entry, Global>
) -> Result<usize, Error>
[src][−]
&self,
region_id: u64,
low: u64,
high: u64,
max_size: Option<usize>,
buf: &mut Vec<Entry, Global>
) -> Result<usize, Error>
Return count of fetched entries.
pub fn consume(
&self,
batch: &mut <RocksEngine as RaftEngine>::LogBatch,
sync_log: bool
) -> Result<usize, Error>
[src][−]
&self,
batch: &mut <RocksEngine as RaftEngine>::LogBatch,
sync_log: bool
) -> Result<usize, Error>
Consume the write batch by moving the content into the engine itself and return written bytes. Read more
pub fn consume_and_shrink(
&self,
batch: &mut <RocksEngine as RaftEngine>::LogBatch,
sync_log: bool,
max_capacity: usize,
shrink_to: usize
) -> Result<usize, Error>
[src][−]
&self,
batch: &mut <RocksEngine as RaftEngine>::LogBatch,
sync_log: bool,
max_capacity: usize,
shrink_to: usize
) -> Result<usize, Error>
Like consume
but shrink batch
if need.
pub fn clean(
&self,
raft_group_id: u64,
state: &RaftLocalState,
batch: &mut <RocksEngine as RaftEngine>::LogBatch
) -> Result<(), Error>
[src]
&self,
raft_group_id: u64,
state: &RaftLocalState,
batch: &mut <RocksEngine as RaftEngine>::LogBatch
) -> Result<(), Error>
pub fn append(
&self,
raft_group_id: u64,
entries: Vec<Entry, Global>
) -> Result<usize, Error>
[src][−]
&self,
raft_group_id: u64,
entries: Vec<Entry, Global>
) -> Result<usize, Error>
Append some log entries and return written bytes. Read more
pub fn put_raft_state(
&self,
raft_group_id: u64,
state: &RaftLocalState
) -> Result<(), Error>
[src]
&self,
raft_group_id: u64,
state: &RaftLocalState
) -> Result<(), Error>
pub fn gc(&self, raft_group_id: u64, from: u64, to: u64) -> Result<usize, Error>
[src][−]
Like cut_logs
but the range could be very large. Return the deleted count.
Generally, from
can be passed in 0
. Read more
pub fn purge_expired_files(&self) -> Result<Vec<u64, Global>, Error>
[src][−]
Purge expired logs files and return a set of Raft group ids which needs to be compacted ASAP. Read more
pub fn has_builtin_entry_cache(&self) -> bool
[src][−]
The RaftEngine
has a builtin entry cache or not.
pub fn flush_metrics(&self, instance: &str)
[src]
pub fn reset_statistics(&self)
[src]
pub fn dump_stats(&self) -> Result<String, Error>
[src]
pub fn gc_entry_cache(&self, _raft_group_id: u64, _to: u64)
[src][−]
GC the builtin entry cache.
pub fn flush_stats(&self) -> Option<CacheStats>
[src]
pub fn stop(&self)
[src]
impl RangePropertiesExt for RocksEngine
[src][+]
pub fn get_range_approximate_keys(
&self,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
[src][−]
&self,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
Gets the number of keys in a range.
pub fn get_range_approximate_keys_cf(
&self,
cfname: &str,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
[src]
&self,
cfname: &str,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
pub fn get_range_approximate_size(
&self,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
[src][−]
&self,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
Get the approximate size of the range
pub fn get_range_approximate_size_cf(
&self,
cfname: &str,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
[src]
&self,
cfname: &str,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
pub fn get_range_approximate_split_keys(
&self,
range: Range<'_>,
key_count: usize
) -> Result<Vec<Vec<u8, Global>, Global>, Error>
[src][−]
&self,
range: Range<'_>,
key_count: usize
) -> Result<Vec<Vec<u8, Global>, Global>, Error>
Get range approximate split keys to split range evenly into key_count + 1 parts .
pub fn get_range_approximate_split_keys_cf(
&self,
cfname: &str,
range: Range<'_>,
key_count: usize
) -> Result<Vec<Vec<u8, Global>, Global>, Error>
[src]
&self,
cfname: &str,
range: Range<'_>,
key_count: usize
) -> Result<Vec<Vec<u8, Global>, Global>, Error>
impl SstExt for RocksEngine
[src]
type SstReader = RocksSstReader
type SstWriter = RocksSstWriter
type SstWriterBuilder = RocksSstWriterBuilder
impl SyncMutable for RocksEngine
[src][+]
pub fn put(&self, key: &[u8], value: &[u8]) -> Result<(), Error>
[src]
pub fn put_cf(&self, cf: &str, key: &[u8], value: &[u8]) -> Result<(), Error>
[src]
pub fn delete(&self, key: &[u8]) -> Result<(), Error>
[src]
pub fn delete_cf(&self, cf: &str, key: &[u8]) -> Result<(), Error>
[src]
pub fn delete_range(
&self,
begin_key: &[u8],
end_key: &[u8]
) -> Result<(), Error>
[src]
&self,
begin_key: &[u8],
end_key: &[u8]
) -> Result<(), Error>
pub fn delete_range_cf(
&self,
cf: &str,
begin_key: &[u8],
end_key: &[u8]
) -> Result<(), Error>
[src]
&self,
cf: &str,
begin_key: &[u8],
end_key: &[u8]
) -> Result<(), Error>
pub fn put_msg<M>(&self, key: &[u8], m: &M) -> Result<(), Error> where
M: Message,
[src]
M: Message,
pub fn put_msg_cf<M>(&self, cf: &str, key: &[u8], m: &M) -> Result<(), Error> where
M: Message,
[src]
M: Message,
impl TablePropertiesExt for RocksEngine
[src][+]
type TablePropertiesCollection = RocksTablePropertiesCollection
type TablePropertiesCollectionIter = RocksTablePropertiesCollectionIter
type TablePropertiesKey = RocksTablePropertiesKey
type TableProperties = RocksTableProperties
type UserCollectedProperties = RocksUserCollectedProperties
pub fn get_properties_of_tables_in_range(
&self,
cf: &str,
ranges: &[Range<'_>]
) -> Result<<RocksEngine as TablePropertiesExt>::TablePropertiesCollection, Error>
[src]
&self,
cf: &str,
ranges: &[Range<'_>]
) -> Result<<RocksEngine as TablePropertiesExt>::TablePropertiesCollection, Error>
pub fn get_range_properties_cf(
&self,
cfname: &str,
start_key: &[u8],
end_key: &[u8]
) -> Result<Self::TablePropertiesCollection, Error>
[src]
&self,
cfname: &str,
start_key: &[u8],
end_key: &[u8]
) -> Result<Self::TablePropertiesCollection, Error>
impl TtlPropertiesExt for RocksEngine
[src][+]
pub fn get_range_ttl_properties_cf(
&self,
cf: &str,
start_key: &[u8],
end_key: &[u8]
) -> Result<Vec<(String, TtlProperties), Global>, Error>
[src]
&self,
cf: &str,
start_key: &[u8],
end_key: &[u8]
) -> Result<Vec<(String, TtlProperties), Global>, Error>
impl WriteBatchExt for RocksEngine
[src][+]
type WriteBatch = RocksWriteBatch
type WriteBatchVec = RocksWriteBatchVec
WriteBatchVec
is used for multi_batch_write
of RocksEngine and other Engine could also
implement another kind of WriteBatch according to their needs. Read more
pub const WRITE_BATCH_MAX_KEYS: usize
[src][−][−]
The number of puts/deletes made to a write batch before the batch should
be committed with write
. More entries than this will cause
should_write_to_engine
to return true. Read more
pub fn support_write_batch_vec(&self) -> bool
[src][−]
Indicates whether the WriteBatchVec type can be created and works as expected. Read more
pub fn write_batch(&self) -> <RocksEngine as WriteBatchExt>::WriteBatch
[src]
pub fn write_batch_with_cap(
&self,
cap: usize
) -> <RocksEngine as WriteBatchExt>::WriteBatch
[src]
&self,
cap: usize
) -> <RocksEngine as WriteBatchExt>::WriteBatch
Auto Trait Implementations
impl RefUnwindSafe for RocksEngine
impl Send for RocksEngine
impl Sync for RocksEngine
impl Unpin for RocksEngine
impl UnwindSafe for RocksEngine
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
pub fn type_id(&self) -> TypeId
[src][−]
Gets the TypeId
of self
. Read more
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
pub fn borrow(&self) -> &T
[src][−]
Immutably borrows from an owned value. Read more
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src][−]
Mutably borrows from an owned value. Read more
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src][−]
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn in_current_span(self) -> Instrumented<Self>
[src][−]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Pointable for T
[src][+]
pub const ALIGN: usize
[src][−][−]
The alignment of pointer.
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src][−]
Initializes a with the given initializer. Read more
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src][−]
Dereferences the given pointer. Read more
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src][−]
Mutably dereferences the given pointer. Read more
pub unsafe fn drop(ptr: usize)
[src][−]
Drops the object pointed to by the given pointer. Read more
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src][−]
Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src][−]
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src][−]
Performs the conversion.
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src][−]
Performs the conversion.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,