Skip to main content

Diff2

Struct Diff2 

Source
pub struct Diff2<M = Unselected> { /* private fields */ }
Expand description

p4 [g-opts] diff2 [-doptions] [-Od -q -t -u] file1[rev] file2[rev]

p4 [g-opts] diff2 [-doptions] [-Od -q -t -u] -b branch [[fromfile[rev]] tofile[rev]]

p4 [g-opts] diff2 [-doptions] [-Od -q -t -u] [-S stream] [-P parent] [[fromfile[rev]] tofile[rev]]

p4 [g-opts] diff2 [-doptions] -As streamname1[@change1] streamname2[@change2]

Diff utility for comparing the content at two depot paths. (For comparing workspace content to depot content, see p4 diff.) Also compares two arbitrary stream specs with the -As option.

The M type parameter tracks the command mode at compile time. The default Unselected state diffs the two depot paths given as spawn arguments; Self::differing_only, Self::quiet_mode, Self::diff_nontext, and Self::unified_patch transition to the DepotContent state, Self::branch and Self::stream transition to the depot content BranchMode and StreamMode sub-modes, and Self::stream_spec_mode transitions to the StreamSpecMode state.

Implementations§

Source§

impl Diff2<Unselected>

Source

pub fn new(bin: impl Into<PathBuf>, global_opts: GlobalOpts) -> Self

Creates a new p4 diff2 command.

bin is the path to the Perforce command-line executable.

Source

pub fn differing_only(self, v: bool) -> Diff2<DepotContent<Unselected>>

§Description

-Od

Limit output to only those files that differ.

Transitions this command to the DepotContent state with -Od set according to v.

Source

pub fn quiet_mode(self, v: bool) -> Diff2<DepotContent<Unselected>>

§Description

-q

Quiet diff. Display only the header; if file1 and file2 are identical, display only file1 - no differing files as the output.

Transitions this command to the DepotContent state with -q set according to v.

Source

pub fn diff_nontext(self, v: bool) -> Diff2<DepotContent<Unselected>>

§Description

-t

Diff the file revisions even if the file(s) are not of type text.

Transitions this command to the DepotContent state with -t set according to v.

Source

pub fn unified_patch(self, v: bool) -> Diff2<DepotContent<Unselected>>

§Description

-u

Generate unified output format, showing added and deleted lines with sufficient context for compatibility with the patch(1) utility. Only those files that differ are included. File names and dates remain in P4 Server syntax.

Transitions this command to the DepotContent state with -u set according to v.

Source

pub fn branch(self, name: impl Into<String>) -> Diff2<DepotContent<BranchMode>>

§Description

-b branch

Use a branch mapping to diff files in two branched codelines. The files that are compared can be limited by file patterns in either the from or to file specifications.

Transitions this command to the DepotContent state with the BranchMode sub-mode selected and the branch mapping set to name.

Source

pub fn stream(self, name: impl Into<String>) -> Diff2<DepotContent<StreamMode>>

§Description

-S stream

Diff a stream with its parent. To diff the stream with a stream other than its configured parent, specify Diff2::parent or Diff2::set_parent.

Transitions this command to the DepotContent state with the StreamMode sub-mode selected and the stream set to name.

Source

pub fn stream_spec_mode(self) -> Diff2<StreamSpecMode>

§Description

-As

Allows two arbitrary stream specs to be diffed against each other. Can be used with a streamname, or with a streamname at a specific changelist number.

Although this option requires the user have at least the list access to the stream path, it ignores any other entry in the protections table, including any minus sign (-) that would otherwise block the operation.

Transitions this command to the StreamSpecMode state. The two stream specs to compare are passed as the arguments of the spawned command (ParameterizedSpawn::spawn_with). As the -As form accepts only -doptions besides g-opts, this transition is unavailable once the command has entered the DepotContent state.

Source§

impl<M> Diff2<M>

Source

pub fn get_diff_options(&self) -> Option<&DiffOptions>

§Description

-doptions

Pass options to the underlying diff routine (see Usage notes for details).

Source

pub fn set_diff_options(&mut self, v: impl Into<DiffOptions>) -> &mut Self

§Description

-doptions

Pass options to the underlying diff routine (see Usage notes for details).

Source

pub fn diff_options(self, v: impl Into<DiffOptions>) -> Self

§Description

-doptions

Pass options to the underlying diff routine (see Usage notes for details).

Source§

impl<M: ExclusiveOption> Diff2<M>

Source

pub fn get_global_opts(&self) -> &GlobalOpts

§Description

g-opts

See Global options.

Source

pub fn set_global_opts(&mut self, v: GlobalOpts) -> &mut Self

§Description

g-opts

See Global options.

Source

pub fn global_opts(self, v: GlobalOpts) -> Self

§Description

g-opts

See Global options.

Source§

impl<M> Diff2<DepotContent<M>>

Source

pub fn get_differing_only(&self) -> bool

§Description

-Od

Limit output to only those files that differ.

Source

pub fn set_differing_only(&mut self, v: bool) -> &mut Self

§Description

-Od

Limit output to only those files that differ.

Source

pub fn differing_only(self, v: bool) -> Self

§Description

-Od

Limit output to only those files that differ.

Source

pub fn get_quiet_mode(&self) -> bool

§Description

-q

Quiet diff. Display only the header; if file1 and file2 are identical, display only file1 - no differing files as the output.

Source

pub fn set_quiet_mode(&mut self, v: bool) -> &mut Self

§Description

-q

Quiet diff. Display only the header; if file1 and file2 are identical, display only file1 - no differing files as the output.

Source

pub fn quiet_mode(self, v: bool) -> Self

§Description

-q

Quiet diff. Display only the header; if file1 and file2 are identical, display only file1 - no differing files as the output.

Source

pub fn get_diff_nontext(&self) -> bool

§Description

-t

Diff the file revisions even if the file(s) are not of type text.

Source

pub fn set_diff_nontext(&mut self, v: bool) -> &mut Self

§Description

-t

Diff the file revisions even if the file(s) are not of type text.

Source

pub fn diff_nontext(self, v: bool) -> Self

§Description

-t

Diff the file revisions even if the file(s) are not of type text.

Source

pub fn get_unified_patch(&self) -> bool

§Description

-u

Generate unified output format, showing added and deleted lines with sufficient context for compatibility with the patch(1) utility. Only those files that differ are included. File names and dates remain in P4 Server syntax.

Source

pub fn set_unified_patch(&mut self, v: bool) -> &mut Self

§Description

-u

Generate unified output format, showing added and deleted lines with sufficient context for compatibility with the patch(1) utility. Only those files that differ are included. File names and dates remain in P4 Server syntax.

Source

pub fn unified_patch(self, v: bool) -> Self

§Description

-u

Generate unified output format, showing added and deleted lines with sufficient context for compatibility with the patch(1) utility. Only those files that differ are included. File names and dates remain in P4 Server syntax.

Source§

impl Diff2<DepotContent<Unselected>>

Source

pub fn branch(self, name: impl Into<String>) -> Diff2<DepotContent<BranchMode>>

§Description

-b branch

Use a branch mapping to diff files in two branched codelines. The files that are compared can be limited by file patterns in either the from or to file specifications.

Transitions this command to the DepotContent state with the BranchMode sub-mode selected and the branch mapping set to name.

Source

pub fn stream(self, name: impl Into<String>) -> Diff2<DepotContent<StreamMode>>

§Description

-S stream

Diff a stream with its parent. To diff the stream with a stream other than its configured parent, specify Diff2::parent or Diff2::set_parent.

Transitions this command to the DepotContent state with the StreamMode sub-mode selected and the stream set to name.

Source§

impl Diff2<DepotContent<BranchMode>>

Source

pub fn get_branch(&self) -> &str

§Description

-b branch

Use a branch mapping to diff files in two branched codelines. The files that are compared can be limited by file patterns in either the from or to file specifications.

Source

pub fn set_branch(&mut self, v: impl Into<String>) -> &mut Self

§Description

-b branch

Use a branch mapping to diff files in two branched codelines. The files that are compared can be limited by file patterns in either the from or to file specifications.

Source

pub fn branch(self, v: impl Into<String>) -> Self

§Description

-b branch

Use a branch mapping to diff files in two branched codelines. The files that are compared can be limited by file patterns in either the from or to file specifications.

Source§

impl Diff2<DepotContent<StreamMode>>

Source

pub fn get_stream(&self) -> &str

§Description

-S stream

Diff a stream with its parent. To diff the stream with a stream other than its configured parent, specify Diff2::parent or Diff2::set_parent.

Source

pub fn set_stream(&mut self, v: impl Into<String>) -> &mut Self

§Description

-S stream

Diff a stream with its parent. To diff the stream with a stream other than its configured parent, specify Diff2::parent or Diff2::set_parent.

Source

pub fn stream(self, v: impl Into<String>) -> Self

§Description

-S stream

Diff a stream with its parent. To diff the stream with a stream other than its configured parent, specify Diff2::parent or Diff2::set_parent.

Source

pub fn get_parent(&self) -> Option<&str>

§Description

-P parent

Diff the stream with a stream other than its configured parent.

Source

pub fn set_parent(&mut self, v: impl Into<String>) -> &mut Self

§Description

-P parent

Diff the stream with a stream other than its configured parent.

Source

pub fn parent(self, v: impl Into<String>) -> Self

§Description

-P parent

Diff the stream with a stream other than its configured parent.

Trait Implementations§

Source§

impl<M: Clone> Clone for Diff2<M>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<M: Debug> Debug for Diff2<M>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<M: Default> Default for Diff2<M>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl ParameterizedSpawn for Diff2<Unselected>

Source§

fn spawn_with<'a>( &mut self, (file1, file2): Self::Input<'a>, ) -> Result<Self::Output<'a>, Self::Error>

Spawns p4 diff2 for the given pair of file arguments as a child process with piped standard output and error streams; use the returned Child handle to wait for it or interact with it.

Each file argument is a file name, optionally with a revision specifier (for example file#2 or file@34).

Source§

type Input<'a> = (&'a OsStr, &'a OsStr)

Source§

type Output<'a> = Child

Source§

type Error = Error

Source§

impl ParameterizedSpawn for Diff2<DepotContent<Unselected>>

Source§

fn spawn_with<'a>( &mut self, (file1, file2): Self::Input<'a>, ) -> Result<Self::Output<'a>, Self::Error>

Spawns p4 diff2 for the given pair of file arguments as a child process with piped standard output and error streams; use the returned Child handle to wait for it or interact with it.

Each file argument is a file name, optionally with a revision specifier (for example file#2 or file@34).

Source§

type Input<'a> = (&'a OsStr, &'a OsStr)

Source§

type Output<'a> = Child

Source§

type Error = Error

Source§

impl ParameterizedSpawn for Diff2<DepotContent<BranchMode>>

Source§

fn spawn_with<'a>( &mut self, files: Self::Input<'a>, ) -> Result<Self::Output<'a>, Self::Error>

Spawns p4 diff2 -b branch as a child process with piped standard output and error streams; use the returned Child handle to wait for it or interact with it.

Diff2Parameters::Full limits the files compared to fromfile[rev] and tofile[rev], Diff2Parameters::To limits the target side only, and Diff2Parameters::None diffs the whole branch mapping.

Source§

type Input<'a> = Diff2Parameters<'a>

Source§

type Output<'a> = Child

Source§

type Error = Error

Source§

impl ParameterizedSpawn for Diff2<DepotContent<StreamMode>>

Source§

fn spawn_with<'a>( &mut self, files: Self::Input<'a>, ) -> Result<Self::Output<'a>, Self::Error>

Spawns p4 diff2 -S stream as a child process with piped standard output and error streams; use the returned Child handle to wait for it or interact with it.

Diff2Parameters::Full limits the files compared to fromfile[rev] and tofile[rev], Diff2Parameters::To limits the target side only, and Diff2Parameters::None diffs the whole stream with its parent.

Source§

type Input<'a> = Diff2Parameters<'a>

Source§

type Output<'a> = Child

Source§

type Error = Error

Source§

impl ParameterizedSpawn for Diff2<StreamSpecMode>

Source§

fn spawn_with<'a>( &mut self, (spec1, spec2): Self::Input<'a>, ) -> Result<Self::Output<'a>, Self::Error>

Spawns p4 diff2 -As for the given pair of stream specs as a child process with piped standard output and error streams; use the returned Child handle to wait for it or interact with it.

Each stream spec is a streamname, optionally at a specific changelist number: @head selects the head version, @change the version at a specific change, and @=change the shelved version at a specific change.

Source§

type Input<'a> = (&'a str, &'a str)

Source§

type Output<'a> = Child

Source§

type Error = Error

Source§

impl SpawnExt for Diff2<DepotContent<BranchMode>>

Source§

fn spawn<'a>(&mut self) -> Result<Self::Output<'a>, Self::Error>

Spawns p4 diff2 -b branch without file arguments as a child process with piped standard output and error streams; the whole branch mapping is diffed. Use the returned Child handle to wait for it or interact with it.

Source§

impl SpawnExt for Diff2<DepotContent<StreamMode>>

Source§

fn spawn<'a>(&mut self) -> Result<Self::Output<'a>, Self::Error>

Spawns p4 diff2 -S stream without file arguments as a child process with piped standard output and error streams; the whole stream is diffed with its parent. Use the returned Child handle to wait for it or interact with it.

Source§

impl<'f> SpawnExt1<&'f OsStr> for Diff2<DepotContent<BranchMode>>

Source§

fn spawn<'a>( &mut self, tofile: &'f OsStr, ) -> Result<Self::Output<'a>, Self::Error>

Spawns p4 diff2 -b branch tofile[rev] as a child process with piped standard output and error streams; the branch mapping is diffed with the target side limited to the given file. Use the returned Child handle to wait for it or interact with it.

Source§

impl<'f> SpawnExt1<&'f OsStr> for Diff2<DepotContent<StreamMode>>

Source§

fn spawn<'a>( &mut self, tofile: &'f OsStr, ) -> Result<Self::Output<'a>, Self::Error>

Spawns p4 diff2 -S stream tofile[rev] as a child process with piped standard output and error streams; the stream is diffed with its parent with the target side limited to the given file. Use the returned Child handle to wait for it or interact with it.

Source§

impl<'f> SpawnExt2<&'f OsStr, &'f OsStr> for Diff2<DepotContent<BranchMode>>

Source§

fn spawn<'a>( &mut self, fromfile: &'f OsStr, tofile: &'f OsStr, ) -> Result<Self::Output<'a>, Self::Error>

Spawns p4 diff2 -b branch fromfile[rev] tofile[rev] as a child process with piped standard output and error streams; the branch mapping is diffed between the given files. Use the returned Child handle to wait for it or interact with it.

Source§

impl<'f> SpawnExt2<&'f OsStr, &'f OsStr> for Diff2<DepotContent<StreamMode>>

Source§

fn spawn<'a>( &mut self, fromfile: &'f OsStr, tofile: &'f OsStr, ) -> Result<Self::Output<'a>, Self::Error>

Spawns p4 diff2 -S stream fromfile[rev] tofile[rev] as a child process with piped standard output and error streams; the stream is diffed with its parent between the given files. Use the returned Child handle to wait for it or interact with it.

Source§

impl<M: ExclusiveOption> SubCommand for Diff2<M>

Source§

fn name(&self) -> &str

Source§

fn inject_local_args(&self, command: &mut Command)

Source§

fn global_opts(&self) -> Option<&GlobalOpts>

Source§

fn inject_args(&self, command: &mut Command)

Source§

fn setup_command<S: AsRef<OsStr>>(&self, bin: S) -> Command

Auto Trait Implementations§

§

impl<M> Freeze for Diff2<M>
where M: Freeze,

§

impl<M> RefUnwindSafe for Diff2<M>
where M: RefUnwindSafe,

§

impl<M> Send for Diff2<M>
where M: Send,

§

impl<M> Sync for Diff2<M>
where M: Sync,

§

impl<M> Unpin for Diff2<M>
where M: Unpin,

§

impl<M> UnsafeUnpin for Diff2<M>
where M: UnsafeUnpin,

§

impl<M> UnwindSafe for Diff2<M>
where M: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> OutputExt for T
where T: for<'a> SpawnExt<Output<'a> = Child, Error = Error>,

Source§

impl<T, T1> OutputExt1<T1> for T
where T: for<'a> ParameterizedOutput<Input<'a> = T1>,

Source§

fn output<'a>( &mut self, a: T1, ) -> Result<Output, <T as ParameterizedOutput>::Error>
where T1: 'a,

Source§

impl<T, T1, T2> OutputExt2<T1, T2> for T
where T: for<'a> ParameterizedOutput<Input<'a> = (T1, T2)>,

Source§

fn output<'a>( &mut self, a: T1, b: T2, ) -> Result<Output, <T as ParameterizedOutput>::Error>
where T1: 'a, T2: 'a,

Source§

impl<T, T1, T2, T3> OutputExt3<T1, T2, T3> for T
where T: for<'a> ParameterizedOutput<Input<'a> = (T1, T2, T3)>,

Source§

fn output<'a>( &mut self, a: T1, b: T2, c: T3, ) -> Result<Output, <T as ParameterizedOutput>::Error>
where T1: 'a, T2: 'a, T3: 'a,

Source§

impl<T, T1, T2, T3, T4> OutputExt4<T1, T2, T3, T4> for T
where T: for<'a> ParameterizedOutput<Input<'a> = (T1, T2, T3, T4)>,

Source§

fn output<'a>( &mut self, a: T1, b: T2, c: T3, d: T4, ) -> Result<Output, <T as ParameterizedOutput>::Error>
where T1: 'a, T2: 'a, T3: 'a, T4: 'a,

Source§

impl<T, T1, T2, T3, T4, T5> OutputExt5<T1, T2, T3, T4, T5> for T
where T: for<'a> ParameterizedOutput<Input<'a> = (T1, T2, T3, T4, T5)>,

Source§

fn output<'a>( &mut self, a: T1, b: T2, c: T3, d: T4, e: T5, ) -> Result<Output, <T as ParameterizedOutput>::Error>
where T1: 'a, T2: 'a, T3: 'a, T4: 'a, T5: 'a,

Source§

impl<T, T1, T2, T3, T4, T5, T6> OutputExt6<T1, T2, T3, T4, T5, T6> for T
where T: for<'a> ParameterizedOutput<Input<'a> = (T1, T2, T3, T4, T5, T6)>,

Source§

fn output<'a>( &mut self, a: T1, b: T2, c: T3, d: T4, e: T5, f: T6, ) -> Result<Output, <T as ParameterizedOutput>::Error>
where T1: 'a, T2: 'a, T3: 'a, T4: 'a, T5: 'a, T6: 'a,

Source§

impl<T, T1, T2, T3, T4, T5, T6, T7> OutputExt7<T1, T2, T3, T4, T5, T6, T7> for T
where T: for<'a> ParameterizedOutput<Input<'a> = (T1, T2, T3, T4, T5, T6, T7)>,

Source§

fn output<'a>( &mut self, a: T1, b: T2, c: T3, d: T4, e: T5, f: T6, g: T7, ) -> Result<Output, <T as ParameterizedOutput>::Error>
where T1: 'a, T2: 'a, T3: 'a, T4: 'a, T5: 'a, T6: 'a, T7: 'a,

Source§

impl<T, T1, T2, T3, T4, T5, T6, T7, T8> OutputExt8<T1, T2, T3, T4, T5, T6, T7, T8> for T

Source§

fn output<'a>( &mut self, a: T1, b: T2, c: T3, d: T4, e: T5, f: T6, g: T7, h: T8, ) -> Result<Output, <T as ParameterizedOutput>::Error>
where T1: 'a, T2: 'a, T3: 'a, T4: 'a, T5: 'a, T6: 'a, T7: 'a, T8: 'a,

Source§

impl<T> ParameterizedOutput for T
where T: for<'a> ParameterizedSpawn<Output<'a> = Child, Error = Error>,

Source§

type Input<'a> = <T as ParameterizedSpawn>::Input<'a>

Source§

type Error = Error

Source§

fn output_with<'a>( &mut self, input: <T as ParameterizedOutput>::Input<'a>, ) -> Result<Output, <T as ParameterizedOutput>::Error>

Source§

impl<T> SpawnExt for T
where T: for<'a> ParameterizedSpawn<Input<'a> = ()>,

Source§

fn spawn<'a>( &mut self, ) -> Result<<T as ParameterizedSpawn>::Output<'a>, <T as ParameterizedSpawn>::Error>

Source§

impl<T, T1> SpawnExt1<T1> for T
where T: for<'a> ParameterizedSpawn<Input<'a> = T1>,

Source§

fn spawn<'a>( &mut self, a: T1, ) -> Result<<T as ParameterizedSpawn>::Output<'a>, <T as ParameterizedSpawn>::Error>

Source§

impl<T, T1, T2> SpawnExt2<T1, T2> for T
where T: for<'a> ParameterizedSpawn<Input<'a> = (T1, T2)>,

Source§

fn spawn<'a>( &mut self, a: T1, b: T2, ) -> Result<<T as ParameterizedSpawn>::Output<'a>, <T as ParameterizedSpawn>::Error>

Source§

impl<T, T1, T2, T3> SpawnExt3<T1, T2, T3> for T
where T: for<'a> ParameterizedSpawn<Input<'a> = (T1, T2, T3)>,

Source§

fn spawn<'a>( &mut self, a: T1, b: T2, c: T3, ) -> Result<<T as ParameterizedSpawn>::Output<'a>, <T as ParameterizedSpawn>::Error>

Source§

impl<T, T1, T2, T3, T4> SpawnExt4<T1, T2, T3, T4> for T
where T: for<'a> ParameterizedSpawn<Input<'a> = (T1, T2, T3, T4)>,

Source§

fn spawn<'a>( &mut self, a: T1, b: T2, c: T3, d: T4, ) -> Result<<T as ParameterizedSpawn>::Output<'a>, <T as ParameterizedSpawn>::Error>

Source§

impl<T, T1, T2, T3, T4, T5> SpawnExt5<T1, T2, T3, T4, T5> for T
where T: for<'a> ParameterizedSpawn<Input<'a> = (T1, T2, T3, T4, T5)>,

Source§

fn spawn<'a>( &mut self, a: T1, b: T2, c: T3, d: T4, e: T5, ) -> Result<<T as ParameterizedSpawn>::Output<'a>, <T as ParameterizedSpawn>::Error>

Source§

impl<T, T1, T2, T3, T4, T5, T6> SpawnExt6<T1, T2, T3, T4, T5, T6> for T
where T: for<'a> ParameterizedSpawn<Input<'a> = (T1, T2, T3, T4, T5, T6)>,

Source§

fn spawn<'a>( &mut self, a: T1, b: T2, c: T3, d: T4, e: T5, f: T6, ) -> Result<<T as ParameterizedSpawn>::Output<'a>, <T as ParameterizedSpawn>::Error>

Source§

impl<T, T1, T2, T3, T4, T5, T6, T7> SpawnExt7<T1, T2, T3, T4, T5, T6, T7> for T
where T: for<'a> ParameterizedSpawn<Input<'a> = (T1, T2, T3, T4, T5, T6, T7)>,

Source§

fn spawn<'a>( &mut self, a: T1, b: T2, c: T3, d: T4, e: T5, f: T6, g: T7, ) -> Result<<T as ParameterizedSpawn>::Output<'a>, <T as ParameterizedSpawn>::Error>

Source§

impl<T, T1, T2, T3, T4, T5, T6, T7, T8> SpawnExt8<T1, T2, T3, T4, T5, T6, T7, T8> for T

Source§

fn spawn<'a>( &mut self, a: T1, b: T2, c: T3, d: T4, e: T5, f: T6, g: T7, h: T8, ) -> Result<<T as ParameterizedSpawn>::Output<'a>, <T as ParameterizedSpawn>::Error>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.