pub struct VecxRaw { /* private fields */ }Implementations
sourceimpl VecxRaw
impl VecxRaw
pub fn new() -> Self
pub fn get(&self, idx: usize) -> Option<Box<[u8]>>
pub fn get_mut(&self, idx: usize) -> Option<ValueMut<'_, u64>>
pub fn last(&self) -> Option<Box<[u8]>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push(&self, v: Box<[u8]>)
pub fn push_ref(&self, v: &[u8])
pub fn insert(&self, idx: usize, v: Box<[u8]>)
pub fn insert_ref(&self, idx: usize, v: &[u8])
pub fn pop(&self) -> Option<Box<[u8]>>
pub fn remove(&self, idx: usize) -> Box<[u8]>
pub fn swap_remove(&self, idx: usize) -> Box<[u8]>
pub fn update(&self, idx: usize, v: Box<[u8]>) -> Option<Box<[u8]>>
pub fn update_ref(&self, idx: usize, v: &[u8]) -> Option<Box<[u8]>>
pub fn iter(&self) -> VecxRawIterⓘNotable traits for VecxRawIterimpl Iterator for VecxRawIter type Item = Box<[u8]>;
pub fn clear(&self)
Trait Implementations
sourceimpl<'de> Deserialize<'de> for VecxRaw
impl<'de> Deserialize<'de> for VecxRaw
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl VsMgmt for VecxRaw
impl VsMgmt for VecxRaw
sourcefn version_create(&self, _: VersionName<'_>) -> Result<()>
fn version_create(&self, _: VersionName<'_>) -> Result<()>
Create a new version on the default branch.
sourcefn version_create_by_branch(
&self,
_: VersionName<'_>,
__: BranchName<'_>
) -> Result<()>
fn version_create_by_branch(
&self,
_: VersionName<'_>,
__: BranchName<'_>
) -> Result<()>
Create a new version on a specified branch, NOTE: the branch must has been created. Read more
sourcefn version_exists(&self, _: VersionName<'_>) -> bool
fn version_exists(&self, _: VersionName<'_>) -> bool
Check if a verison exists on default branch.
sourcefn version_exists_on_branch(
&self,
_: VersionName<'_>,
__: BranchName<'_>
) -> bool
fn version_exists_on_branch(
&self,
_: VersionName<'_>,
__: BranchName<'_>
) -> bool
Check if a version exists on a specified branch(include its parents).
sourcefn version_created(&self, _: VersionName<'_>) -> bool
fn version_created(&self, _: VersionName<'_>) -> bool
Check if a version is directly created on the default branch.
sourcefn version_created_on_branch(
&self,
_: VersionName<'_>,
_: BranchName<'_>
) -> bool
fn version_created_on_branch(
&self,
_: VersionName<'_>,
_: BranchName<'_>
) -> bool
Check if a version is directly created on a specified branch(exclude its parents).
sourcefn version_pop(&self) -> Result<()>
fn version_pop(&self) -> Result<()>
Remove the newest version on the default branch. Read more
sourcefn version_pop_by_branch(&self, _: BranchName<'_>) -> Result<()>
fn version_pop_by_branch(&self, _: BranchName<'_>) -> Result<()>
Remove the newest version on a specified branch. Read more
sourcefn version_rebase(&self, _: VersionName<'_>) -> Result<()>
fn version_rebase(&self, _: VersionName<'_>) -> Result<()>
Merge all changes made by new versions after the base version into the base version.
sourcefn version_rebase_by_branch(
&self,
_: VersionName<'_>,
_: BranchName<'_>
) -> Result<()>
fn version_rebase_by_branch(
&self,
_: VersionName<'_>,
_: BranchName<'_>
) -> Result<()>
Merge all changes made by new versions after the base version into the base version.
sourcefn branch_create(&self, _: BranchName<'_>) -> Result<()>
fn branch_create(&self, _: BranchName<'_>) -> Result<()>
Create a new branch based on the head of the default branch.
sourcefn branch_create_by_base_branch(
&self,
_: BranchName<'_>,
_: ParentBranchName<'_>
) -> Result<()>
fn branch_create_by_base_branch(
&self,
_: BranchName<'_>,
_: ParentBranchName<'_>
) -> Result<()>
Create a new branch based on the head of a specified branch.
sourcefn branch_create_by_base_branch_version(
&self,
_: BranchName<'_>,
_: ParentBranchName<'_>,
_: VersionName<'_>
) -> Result<()>
fn branch_create_by_base_branch_version(
&self,
_: BranchName<'_>,
_: ParentBranchName<'_>,
_: VersionName<'_>
) -> Result<()>
Create a new branch based on a specified version of a specified branch.
sourcefn branch_exists(&self, _: BranchName<'_>) -> bool
fn branch_exists(&self, _: BranchName<'_>) -> bool
Check if a branch exists or not.
sourcefn branch_has_versions(&self, _: BranchName<'_>) -> bool
fn branch_has_versions(&self, _: BranchName<'_>) -> bool
Check if a branch exists and has versions on it.
sourcefn branch_remove(&self, _: BranchName<'_>) -> Result<()>
fn branch_remove(&self, _: BranchName<'_>) -> Result<()>
Remove a branch, remove all changes directly made by this branch. Read more
sourcefn branch_truncate(&self, _: BranchName<'_>) -> Result<()>
fn branch_truncate(&self, _: BranchName<'_>) -> Result<()>
Remove all changes directly made by versions(bigger than last_version_id) of this branch. Read more
sourcefn branch_truncate_to(
&self,
_: BranchName<'_>,
_: VersionName<'_>
) -> Result<()>
fn branch_truncate_to(
&self,
_: BranchName<'_>,
_: VersionName<'_>
) -> Result<()>
Remove all changes directly made by versions(bigger than last_version_id) of this branch. Read more
sourcefn branch_pop_version(&self, _: BranchName<'_>) -> Result<()>
fn branch_pop_version(&self, _: BranchName<'_>) -> Result<()>
Remove the newest version on a specified branch. Read more
sourcefn branch_merge_to_parent(&self, _: BranchName<'_>) -> Result<()>
fn branch_merge_to_parent(&self, _: BranchName<'_>) -> Result<()>
Merge a branch to its parent branch. Read more
sourcefn branch_has_children(&self, _: BranchName<'_>) -> bool
fn branch_has_children(&self, _: BranchName<'_>) -> bool
Check if a branch has children branches.
sourcefn branch_set_default(&mut self, _: BranchName<'_>) -> Result<()>
fn branch_set_default(&mut self, _: BranchName<'_>) -> Result<()>
Make a branch to be default, all default operations will be applied to it. Read more
sourcefn prune(&self, _: Option<usize>) -> Result<()>
fn prune(&self, _: Option<usize>) -> Result<()>
Clean outdated versions out of the default branch.
sourcefn prune_by_branch(&self, _: BranchName<'_>, __: Option<usize>) -> Result<()>
fn prune_by_branch(&self, _: BranchName<'_>, __: Option<usize>) -> Result<()>
Clean outdated versions out of a specified branch.
impl Copy for VecxRaw
impl Eq for VecxRaw
impl StructuralEq for VecxRaw
impl StructuralPartialEq for VecxRaw
Auto Trait Implementations
impl RefUnwindSafe for VecxRaw
impl Send for VecxRaw
impl Sync for VecxRaw
impl Unpin for VecxRaw
impl UnwindSafe for VecxRaw
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more