diff options
author | 2020-01-05 19:29:12 +0100 | |
---|---|---|
committer | 2020-01-05 19:29:12 +0100 | |
commit | 1a0effa961344677daf17b4192243423a154f1bf (patch) | |
tree | 954d2431d69004c1037d19c3bb930273347df8d4 /core | |
parent | 2116fbb3c2412030a676c60d65784b9dfa467a0a (diff) | |
download | iced-1a0effa961344677daf17b4192243423a154f1bf.tar.gz iced-1a0effa961344677daf17b4192243423a154f1bf.tar.bz2 iced-1a0effa961344677daf17b4192243423a154f1bf.zip |
Add border and shadow styling to `Button`
Diffstat (limited to 'core')
-rw-r--r-- | core/src/vector.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/src/vector.rs b/core/src/vector.rs index 7d87343a..1c09ee3e 100644 --- a/core/src/vector.rs +++ b/core/src/vector.rs @@ -31,3 +31,15 @@ where Self::new(self.x + b.x, self.y + b.y) } } + +impl<T> Default for Vector<T> +where + T: Default, +{ + fn default() -> Self { + Self { + x: T::default(), + y: T::default(), + } + } +} |