pub struct Orphan<T> { /* private fields */ }Expand description
Used to express some ‘non-collection’ types, such as any type of integer, an enum value, etc..
Implementations
Trait Implementations
sourceimpl<T> AddAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + AddAssign,
impl<T> AddAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + AddAssign,
sourcefn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the += operation. Read more
sourceimpl<T> AddAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + AddAssign,
impl<T> AddAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + AddAssign,
sourcefn add_assign(&mut self, other: T)
fn add_assign(&mut self, other: T)
Performs the += operation. Read more
sourceimpl<T> BitAndAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + BitAndAssign,
impl<T> BitAndAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + BitAndAssign,
sourcefn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Performs the &= operation. Read more
sourceimpl<T> BitAndAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + BitAndAssign,
impl<T> BitAndAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + BitAndAssign,
sourcefn bitand_assign(&mut self, other: T)
fn bitand_assign(&mut self, other: T)
Performs the &= operation. Read more
sourceimpl<T> BitOrAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + BitOrAssign,
impl<T> BitOrAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + BitOrAssign,
sourcefn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the |= operation. Read more
sourceimpl<T> BitOrAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + BitOrAssign,
impl<T> BitOrAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + BitOrAssign,
sourcefn bitor_assign(&mut self, other: T)
fn bitor_assign(&mut self, other: T)
Performs the |= operation. Read more
sourceimpl<T> BitXorAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + BitXorAssign,
impl<T> BitXorAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + BitXorAssign,
sourcefn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Performs the ^= operation. Read more
sourceimpl<T> BitXorAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + BitXorAssign,
impl<T> BitXorAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + BitXorAssign,
sourcefn bitxor_assign(&mut self, other: T)
fn bitxor_assign(&mut self, other: T)
Performs the ^= operation. Read more
sourceimpl<'de, T> Deserialize<'de> for Orphan<T>
impl<'de, T> Deserialize<'de> for Orphan<T>
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<T> DivAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + DivAssign,
impl<T> DivAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + DivAssign,
sourcefn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the /= operation. Read more
sourceimpl<T> DivAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + DivAssign,
impl<T> DivAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + DivAssign,
sourcefn div_assign(&mut self, other: T)
fn div_assign(&mut self, other: T)
Performs the /= operation. Read more
sourceimpl<T> MulAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + MulAssign,
impl<T> MulAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + MulAssign,
sourcefn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the *= operation. Read more
sourceimpl<T> MulAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + MulAssign,
impl<T> MulAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + MulAssign,
sourcefn mul_assign(&mut self, other: T)
fn mul_assign(&mut self, other: T)
Performs the *= operation. Read more
sourceimpl<T> Ord for Orphan<T> where
T: ValueEnDe + Ord,
impl<T> Ord for Orphan<T> where
T: ValueEnDe + Ord,
sourceimpl<T> PartialOrd<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord,
impl<T> PartialOrd<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord,
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl<T> PartialOrd<T> for Orphan<T> where
T: ValueEnDe + Ord,
impl<T> PartialOrd<T> for Orphan<T> where
T: ValueEnDe + Ord,
sourcefn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl<T> RemAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + RemAssign,
impl<T> RemAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + RemAssign,
sourcefn rem_assign(&mut self, other: Self)
fn rem_assign(&mut self, other: Self)
Performs the %= operation. Read more
sourceimpl<T> RemAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + RemAssign,
impl<T> RemAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + RemAssign,
sourcefn rem_assign(&mut self, other: T)
fn rem_assign(&mut self, other: T)
Performs the %= operation. Read more
sourceimpl<T> ShlAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + ShlAssign,
impl<T> ShlAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + ShlAssign,
sourcefn shl_assign(&mut self, other: Self)
fn shl_assign(&mut self, other: Self)
Performs the <<= operation. Read more
sourceimpl<T> ShlAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + ShlAssign,
impl<T> ShlAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + ShlAssign,
sourcefn shl_assign(&mut self, other: T)
fn shl_assign(&mut self, other: T)
Performs the <<= operation. Read more
sourceimpl<T> ShrAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + ShrAssign,
impl<T> ShrAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + ShrAssign,
sourcefn shr_assign(&mut self, other: Self)
fn shr_assign(&mut self, other: Self)
Performs the >>= operation. Read more
sourceimpl<T> ShrAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + ShrAssign,
impl<T> ShrAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + ShrAssign,
sourcefn shr_assign(&mut self, other: T)
fn shr_assign(&mut self, other: T)
Performs the >>= operation. Read more
sourceimpl<T> SubAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + SubAssign,
impl<T> SubAssign<Orphan<T>> for Orphan<T> where
T: ValueEnDe + Ord + Eq + SubAssign,
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the -= operation. Read more
sourceimpl<T> SubAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + SubAssign,
impl<T> SubAssign<T> for Orphan<T> where
T: ValueEnDe + Ord + Eq + SubAssign,
sourcefn sub_assign(&mut self, other: T)
fn sub_assign(&mut self, other: T)
Performs the -= operation. Read more
sourceimpl<T> VsMgmt for Orphan<T>
impl<T> VsMgmt for Orphan<T>
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 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_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 reserved number.
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 reserved number.
impl<T: Copy> Copy for Orphan<T>
impl<T> Eq for Orphan<T> where
T: ValueEnDe + PartialEq,
Auto Trait Implementations
impl<T> RefUnwindSafe for Orphan<T> where
T: RefUnwindSafe,
impl<T> Send for Orphan<T> where
T: Send,
impl<T> Sync for Orphan<T> where
T: Sync,
impl<T> Unpin for Orphan<T> where
T: Unpin,
impl<T> UnwindSafe for Orphan<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more