pub struct AxialAberration {
pub enable: bool,
pub amount: f32,
pub color_type: i32,
}Expand description
Artifact that is caused by the light rays entering the lens at a different rate at different focal distances.
Fields§
§enable: boolFlag indicating whether axial aberration is enabled
amount: f32Amount of the axial aberration effect
color_type: i32Color type for the aberration
Implementations§
Source§impl AxialAberration
impl AxialAberration
Sourcepub fn color_type(&self) -> AxialAberrationType
pub fn color_type(&self) -> AxialAberrationType
Returns the enum value of color_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_color_type(&mut self, value: AxialAberrationType)
pub fn set_color_type(&mut self, value: AxialAberrationType)
Sets color_type to the provided enum value.
Trait Implementations§
Source§impl Clone for AxialAberration
impl Clone for AxialAberration
Source§fn clone(&self) -> AxialAberration
fn clone(&self) -> AxialAberration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AxialAberration
impl Debug for AxialAberration
Source§impl Default for AxialAberration
impl Default for AxialAberration
Source§impl Message for AxialAberration
impl Message for AxialAberration
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for AxialAberration
impl PartialEq for AxialAberration
impl Copy for AxialAberration
impl StructuralPartialEq for AxialAberration
Auto Trait Implementations§
impl Freeze for AxialAberration
impl RefUnwindSafe for AxialAberration
impl Send for AxialAberration
impl Sync for AxialAberration
impl Unpin for AxialAberration
impl UnwindSafe for AxialAberration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more