Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Dunitrust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nodes
rust
Dunitrust
Merge requests
!149
Elois/ref common tools
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Elois/ref common tools
elois/ref-common-tools
into
dev
Overview
0
Commits
2
Pipelines
0
Changes
3
Merged
Éloïs
requested to merge
elois/ref-common-tools
into
dev
6 years ago
Overview
0
Commits
2
Pipelines
0
Changes
3
0
0
Merge request reports
Viewing commit
a4c169bb
Prev
Next
Show latest version
3 files
+
41
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
a4c169bb
[feat] common-tools: add trait merge
· a4c169bb
Éloïs
authored
6 years ago
lib/tools/common-tools/src/traits/merge.rs
0 → 100644
+
22
−
0
View file @ a4c169bb
Edit in single-file editor
Open in Web IDE
// Copyright (C) 2019 Éloïs SANCHEZ
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//! Trait Merge.
/// Merge two instances of same type
pub
trait
Merge
{
/// Merge two instances of same type
fn
merge
(
self
,
other
:
Self
)
->
Self
;
}
Loading